[ticket/11444] Fix services definition

PHPBB3-11444
This commit is contained in:
Tristan Darricau 2015-07-09 21:50:34 +02:00
parent fc34057f28
commit c1deeab318
2 changed files with 10 additions and 20 deletions

View file

@ -23,7 +23,7 @@ services:
- { name: service_collection, tag: notification.type }
notification.type.base:
abstract: true
abstract: true
arguments:
- @dbal.conn
- @user
@ -45,7 +45,7 @@ services:
notification.type.approve_post:
class: phpbb\notification\type\approve_post
scope: prototype
parent: notification.type.base
parent: notification.type.post
tags:
- { name: notification.type }
@ -59,16 +59,14 @@ services:
notification.type.bookmark:
class: phpbb\notification\type\bookmark
scope: prototype
parent: notification.type.base
calls:
- [set_config, ["@config"]]
parent: notification.type.post
tags:
- { name: notification.type }
notification.type.disapprove_post:
class: phpbb\notification\type\disapprove_post
scope: prototype
parent: notification.type.base
parent: notification.type.post
tags:
- { name: notification.type }
@ -118,14 +116,14 @@ services:
notification.type.post_in_queue:
class: phpbb\notification\type\post_in_queue
scope: prototype
parent: notification.type.base
parent: notification.type.post
tags:
- { name: notification.type }
notification.type.quote:
class: phpbb\notification\type\quote
scope: prototype
parent: notification.type.base
parent: notification.type.post
calls:
- [set_utils, [@text_formatter.utils]]
tags:
@ -134,28 +132,28 @@ services:
notification.type.report_pm:
class: phpbb\notification\type\report_pm
scope: prototype
parent: notification.type.base
parent: notification.type.pm
tags:
- { name: notification.type }
notification.type.report_pm_closed:
class: phpbb\notification\type\report_pm_closed
scope: prototype
parent: notification.type.base
parent: notification.type.pm
tags:
- { name: notification.type }
notification.type.report_post:
class: phpbb\notification\type\report_post
scope: prototype
parent: notification.type.base
parent: notification.type.post
tags:
- { name: notification.type }
notification.type.report_post_closed:
class: phpbb\notification\type\report_post_closed
scope: prototype
parent: notification.type.base
parent: notification.type.post
tags:
- { name: notification.type }

View file

@ -48,14 +48,6 @@ class bookmark extends \phpbb\notification\type\post
'group' => 'NOTIFICATION_GROUP_POSTING',
);
/** @var \phpbb\config\config */
protected $config;
public function set_config(\phpbb\config\config $config)
{
$this->config = $config;
}
/**
* Is available
*/