Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
HookRunner | |
0.00% |
0 / 8 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
onGetStreamConfigs | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\EventStreamConfig\Hooks; |
4 | |
5 | use MediaWiki\HookContainer\HookContainer; |
6 | |
7 | /** |
8 | * This is a hook runner class, see docs/Hooks.md in core. |
9 | * @internal |
10 | */ |
11 | class HookRunner |
12 | implements GetStreamConfigsHook |
13 | { |
14 | private HookContainer $hookContainer; |
15 | |
16 | public function __construct( HookContainer $hookContainer ) { |
17 | $this->hookContainer = $hookContainer; |
18 | } |
19 | |
20 | /** |
21 | * @inheritDoc |
22 | */ |
23 | public function onGetStreamConfigs( array &$streamConfigs ): void { |
24 | $this->hookContainer->run( |
25 | 'GetStreamConfigs', |
26 | [ &$streamConfigs ], |
27 | [ |
28 | 'abortable' => false, |
29 | ] |
30 | ); |
31 | } |
32 | } |