1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +02:00

[ticket/13154] Adding phpBB dispatcher to notifications manager

PHPBB3-13154
This commit is contained in:
brunoais 2014-12-17 23:10:37 +00:00
parent 7512efed9e
commit 458f9cade6
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@ services:
- @service_container
- @user_loader
- @config
- @dispatcher
- @dbal.conn
- @cache
- @user

View File

@ -38,6 +38,9 @@ class manager
/** @var \phpbb\config\config */
protected $config;
/** @var \phpbb\event\dispatcher */
protected $phpbb_dispatcher;
/** @var \phpbb\db\driver\driver_interface */
protected $db;
@ -70,6 +73,7 @@ class manager
* @param ContainerInterface $phpbb_container
* @param \phpbb\user_loader $user_loader
* @param \phpbb\config\config $config
* @param \phpbb\event\dispatcher $config
* @param \phpbb\db\driver\driver_interface $db
* @param \phpbb\cache\service $cache
* @param \phpbb\user $user
@ -81,7 +85,7 @@ class manager
*
* @return \phpbb\notification\manager
*/
public function __construct($notification_types, $notification_methods, ContainerInterface $phpbb_container, \phpbb\user_loader $user_loader, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\cache\service $cache, $user, $phpbb_root_path, $php_ext, $notification_types_table, $notifications_table, $user_notifications_table)
public function __construct($notification_types, $notification_methods, ContainerInterface $phpbb_container, \phpbb\user_loader $user_loader, \phpbb\config\config $config, \phpbb\event\dispatcher $phpbb_dispatcher, \phpbb\db\driver\driver_interface $db, \phpbb\cache\service $cache, $user, $phpbb_root_path, $php_ext, $notification_types_table, $notifications_table, $user_notifications_table)
{
$this->notification_types = $notification_types;
$this->notification_methods = $notification_methods;
@ -89,6 +93,7 @@ class manager
$this->user_loader = $user_loader;
$this->config = $config;
$this->phpbb_dispatcher = $phpbb_dispatcher;
$this->db = $db;
$this->cache = $cache;
$this->user = $user;