mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11444] Fix services definition
PHPBB3-11444
This commit is contained in:
parent
fc34057f28
commit
c1deeab318
2 changed files with 10 additions and 20 deletions
|
@ -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 }
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue