mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13146] Adding eventDispatcher to the list
PHPBB3-13146
This commit is contained in:
parent
614f975e68
commit
80a7f6930c
2 changed files with 10 additions and 1 deletions
|
@ -3,6 +3,7 @@ services:
|
||||||
class: phpbb\content_visibility
|
class: phpbb\content_visibility
|
||||||
arguments:
|
arguments:
|
||||||
- @auth
|
- @auth
|
||||||
|
- @phpbb_dispatcher
|
||||||
- @config
|
- @config
|
||||||
- @dbal.conn
|
- @dbal.conn
|
||||||
- @user
|
- @user
|
||||||
|
|
|
@ -43,6 +43,12 @@ class content_visibility
|
||||||
*/
|
*/
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event dispatcher object
|
||||||
|
* @var \phpbb\event\dispatcher
|
||||||
|
*/
|
||||||
|
protected $phpbb_dispatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* phpBB root path
|
* phpBB root path
|
||||||
* @var string
|
* @var string
|
||||||
|
@ -60,6 +66,7 @@ class content_visibility
|
||||||
*
|
*
|
||||||
* @param \phpbb\auth\auth $auth Auth object
|
* @param \phpbb\auth\auth $auth Auth object
|
||||||
* @param \phpbb\config\config $config Config object
|
* @param \phpbb\config\config $config Config object
|
||||||
|
* @param \phpbb\event\dispatcher $phpbb_dispatcher Event dispatcher object
|
||||||
* @param \phpbb\db\driver\driver_interface $db Database object
|
* @param \phpbb\db\driver\driver_interface $db Database object
|
||||||
* @param \phpbb\user $user User object
|
* @param \phpbb\user $user User object
|
||||||
* @param string $phpbb_root_path Root path
|
* @param string $phpbb_root_path Root path
|
||||||
|
@ -69,10 +76,11 @@ class content_visibility
|
||||||
* @param string $topics_table Topics table name
|
* @param string $topics_table Topics table name
|
||||||
* @param string $users_table Users table name
|
* @param string $users_table Users table name
|
||||||
*/
|
*/
|
||||||
public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path, $php_ext, $forums_table, $posts_table, $topics_table, $users_table)
|
public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\event\dispatcher $phpbb_dispatcher, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path, $php_ext, $forums_table, $posts_table, $topics_table, $users_table)
|
||||||
{
|
{
|
||||||
$this->auth = $auth;
|
$this->auth = $auth;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
$this->phpbb_dispatcher = $phpbb_dispatcher;
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
$this->phpbb_root_path = $phpbb_root_path;
|
||||||
|
|
Loading…
Add table
Reference in a new issue