mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13154] Adding phpBB dispatcher to notifications manager
PHPBB3-13154
This commit is contained in:
parent
7512efed9e
commit
458f9cade6
2 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,7 @@ services:
|
||||||
- @service_container
|
- @service_container
|
||||||
- @user_loader
|
- @user_loader
|
||||||
- @config
|
- @config
|
||||||
|
- @dispatcher
|
||||||
- @dbal.conn
|
- @dbal.conn
|
||||||
- @cache
|
- @cache
|
||||||
- @user
|
- @user
|
||||||
|
|
|
@ -38,6 +38,9 @@ class manager
|
||||||
/** @var \phpbb\config\config */
|
/** @var \phpbb\config\config */
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
|
/** @var \phpbb\event\dispatcher */
|
||||||
|
protected $phpbb_dispatcher;
|
||||||
|
|
||||||
/** @var \phpbb\db\driver\driver_interface */
|
/** @var \phpbb\db\driver\driver_interface */
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
||||||
|
@ -70,6 +73,7 @@ class manager
|
||||||
* @param ContainerInterface $phpbb_container
|
* @param ContainerInterface $phpbb_container
|
||||||
* @param \phpbb\user_loader $user_loader
|
* @param \phpbb\user_loader $user_loader
|
||||||
* @param \phpbb\config\config $config
|
* @param \phpbb\config\config $config
|
||||||
|
* @param \phpbb\event\dispatcher $config
|
||||||
* @param \phpbb\db\driver\driver_interface $db
|
* @param \phpbb\db\driver\driver_interface $db
|
||||||
* @param \phpbb\cache\service $cache
|
* @param \phpbb\cache\service $cache
|
||||||
* @param \phpbb\user $user
|
* @param \phpbb\user $user
|
||||||
|
@ -81,7 +85,7 @@ class manager
|
||||||
*
|
*
|
||||||
* @return \phpbb\notification\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_types = $notification_types;
|
||||||
$this->notification_methods = $notification_methods;
|
$this->notification_methods = $notification_methods;
|
||||||
|
@ -89,6 +93,7 @@ class manager
|
||||||
|
|
||||||
$this->user_loader = $user_loader;
|
$this->user_loader = $user_loader;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
$this->phpbb_dispatcher = $phpbb_dispatcher;
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->cache = $cache;
|
$this->cache = $cache;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
|
|
Loading…
Add table
Reference in a new issue