hookRunner = $hookRunner; $this->filterProfiler = $filterProfiler; $this->changeTagger = $changeTagger; $this->filterLookup = $filterLookup; $this->parserFactory = $parserFactory; $this->consExecutorFactory = $consExecutorFactory; $this->abuseLoggerFactory = $abuseLoggerFactory; $this->varManager = $varManager; $this->varGeneratorFactory = $varGeneratorFactory; $this->updateHitCountWatcher = $updateHitCountWatcher; $this->emergencyWatcher = $emergencyWatcher; $this->logger = $logger; $this->statsdDataFactory = $statsdDataFactory; $this->options = $options; } /** * @param User $user * @param Title $title * @param VariableHolder $vars * @param string $group * @return FilterRunner */ public function newRunner( User $user, Title $title, VariableHolder $vars, string $group ) : FilterRunner { // TODO Add a method to this class taking these as params? Add a hook for custom watchers $watchers = [ $this->updateHitCountWatcher, $this->emergencyWatcher ]; return new FilterRunner( $this->hookRunner, $this->filterProfiler, $this->changeTagger, $this->filterLookup, $this->parserFactory, $this->consExecutorFactory, $this->abuseLoggerFactory, $this->varManager, $this->varGeneratorFactory, $watchers, $this->logger, $this->statsdDataFactory, $this->options, $user, $title, $vars, $group ); } }