1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/13685] Add phpbb_dispatcher to fulltext search constructors

PHPBB3-13685
This commit is contained in:
brunoais
2015-03-11 17:46:42 +00:00
parent 2348580255
commit c3a0e09ddb
14 changed files with 50 additions and 18 deletions

View File

@@ -55,6 +55,12 @@ class fulltext_postgres extends \phpbb\search\base
*/
protected $db;
/**
* PhpBB event dispatcher object
* @var \phpbb\event\dispatcher_interface
*/
protected $phpbb_dispatcher;
/**
* User object
* @var \phpbb\user
@@ -91,12 +97,14 @@ class fulltext_postgres extends \phpbb\search\base
* @param \phpbb\auth\auth $auth Auth object
* @param \phpbb\config\config $config Config object
* @param \phpbb\db\driver\driver_interface Database object
* @param \phpbb\event\dispatcher_interface $phpbb_dispatcher Event dispatcher object
* @param \phpbb\user $user User object
*/
public function __construct(&$error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user)
public function __construct(&$error, $phpbb_root_path, $phpEx, $auth, $config, $db, $phpbb_dispatcher, $user)
{
$this->config = $config;
$this->db = $db;
$this->phpbb_dispatcher = $phpbb_dispatcher;
$this->user = $user;
$this->word_length = array('min' => $this->config['fulltext_postgres_min_word_len'], 'max' => $this->config['fulltext_postgres_max_word_len']);