[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

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

View file

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