Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
CirrusSearchHooks | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
onCirrusSearchAddQueryFeatures | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\PageAssessments; |
4 | |
5 | use CirrusSearch\Hooks\CirrusSearchAddQueryFeaturesHook; |
6 | use CirrusSearch\SearchConfig; |
7 | |
8 | class CirrusSearchHooks implements CirrusSearchAddQueryFeaturesHook { |
9 | |
10 | /** @inheritDoc */ |
11 | public function onCirrusSearchAddQueryFeatures( SearchConfig $config, array &$extraFeatures ): void { |
12 | $extraFeatures[] = new CirrusSearchInProjectFeature(); |
13 | } |
14 | } |