File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ services:
44 arguments :
55 - @config
66 - @template
7+ - @user
78 tags :
89 - { name: event.listener }
Original file line number Diff line number Diff line change @@ -23,18 +23,23 @@ class listener implements EventSubscriberInterface
2323 /** @var \phpbb\template\template */
2424 protected $ template ;
2525
26+ /** @var \phpbb\user */
27+ protected $ user ;
28+
2629 /**
2730 * Constructor
2831 *
2932 * @param \phpbb\config\config $config Config object
3033 * @param \phpbb\template\template $template Template object
34+ * @param \phpbb\user $user User object
3135 * @return \phpbb\boardrules\event\listener
3236 * @access public
3337 */
34- public function __construct (\phpbb \config \config $ config , \phpbb \template \template $ template )
38+ public function __construct (\phpbb \config \config $ config , \phpbb \template \template $ template, \ phpbb \ user $ user )
3539 {
3640 $ this ->config = $ config ;
3741 $ this ->template = $ template ;
42+ $ this ->user = $ user ;
3843 }
3944
4045 /**
You can’t perform that action at this time.
0 commit comments