diff options
author | rxu <rxu@mail.ru> | 2015-06-20 21:39:06 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2015-06-20 21:39:06 +0700 |
commit | a8fe3926dc32bbddb3c1624f7aa8a3696ecc17ca (patch) | |
tree | d69b841a42cb498a2bd5c3aaedb7b71b21c7c73f /phpBB/phpbb/cron/task | |
parent | da7b24449d1767e4afec653399aaf2c0db4524a5 (diff) | |
download | forums-a8fe3926dc32bbddb3c1624f7aa8a3696ecc17ca.tar forums-a8fe3926dc32bbddb3c1624f7aa8a3696ecc17ca.tar.gz forums-a8fe3926dc32bbddb3c1624f7aa8a3696ecc17ca.tar.bz2 forums-a8fe3926dc32bbddb3c1624f7aa8a3696ecc17ca.tar.xz forums-a8fe3926dc32bbddb3c1624f7aa8a3696ecc17ca.zip |
[ticket/13952] Inject dispatcher dependency to the tidy search cron task
PHPBB3-13952
Diffstat (limited to 'phpBB/phpbb/cron/task')
-rw-r--r-- | phpBB/phpbb/cron/task/core/tidy_search.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/phpbb/cron/task/core/tidy_search.php b/phpBB/phpbb/cron/task/core/tidy_search.php index ce16b3f988..d3c21332fd 100644 --- a/phpBB/phpbb/cron/task/core/tidy_search.php +++ b/phpBB/phpbb/cron/task/core/tidy_search.php @@ -26,6 +26,7 @@ class tidy_search extends \phpbb\cron\task\base protected $config; protected $db; protected $user; + protected $phpbb_dispatcher; /** * Constructor. @@ -36,8 +37,9 @@ class tidy_search extends \phpbb\cron\task\base * @param \phpbb\config\config $config The config * @param \phpbb\db\driver\driver_interface $db The db connection * @param \phpbb\user $user The user + * @param \phpbb\event\dispatcher_interface $phpbb_dispatcher The event dispatcher */ - public function __construct($phpbb_root_path, $php_ext, \phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user) + public function __construct($phpbb_root_path, $php_ext, \phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, \phpbb\event\dispatcher_interface $phpbb_dispatcher) { $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; @@ -45,6 +47,7 @@ class tidy_search extends \phpbb\cron\task\base $this->config = $config; $this->db = $db; $this->user = $user; + $this->phpbb_dispatcher = $phpbb_dispatcher; } /** @@ -58,7 +61,7 @@ class tidy_search extends \phpbb\cron\task\base // We do some additional checks in the module to ensure it can actually be utilised $error = false; - $search = new $search_type($error, $this->phpbb_root_path, $this->php_ext, $this->auth, $this->config, $this->db, $this->user); + $search = new $search_type($error, $this->phpbb_root_path, $this->php_ext, $this->auth, $this->config, $this->db, $this->user, $this->phpbb_dispatcher); if (!$error) { |