Skip to content

Commit 80a7f69

Browse files
committed
[ticket/13146] Adding eventDispatcher to the list
PHPBB3-13146
1 parent 614f975 commit 80a7f69

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

phpBB/config/content.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
class: phpbb\content_visibility
44
arguments:
55
- @auth
6+
- @phpbb_dispatcher
67
- @config
78
- @dbal.conn
89
- @user

phpBB/phpbb/content_visibility.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ class content_visibility
4343
*/
4444
protected $config;
4545

46+
/**
47+
* Event dispatcher object
48+
* @var \phpbb\event\dispatcher
49+
*/
50+
protected $phpbb_dispatcher;
51+
4652
/**
4753
* phpBB root path
4854
* @var string
@@ -60,6 +66,7 @@ class content_visibility
6066
*
6167
* @param \phpbb\auth\auth $auth Auth object
6268
* @param \phpbb\config\config $config Config object
69+
* @param \phpbb\event\dispatcher $phpbb_dispatcher Event dispatcher object
6370
* @param \phpbb\db\driver\driver_interface $db Database object
6471
* @param \phpbb\user $user User object
6572
* @param string $phpbb_root_path Root path
@@ -69,10 +76,11 @@ class content_visibility
6976
* @param string $topics_table Topics table name
7077
* @param string $users_table Users table name
7178
*/
72-
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)
79+
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)
7380
{
7481
$this->auth = $auth;
7582
$this->config = $config;
83+
$this->phpbb_dispatcher = $phpbb_dispatcher;
7684
$this->db = $db;
7785
$this->user = $user;
7886
$this->phpbb_root_path = $phpbb_root_path;

0 commit comments

Comments
 (0)