Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 9 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | use JsonConfig\GlobalJsonLinks; |
4 | use MediaWiki\Config\ServiceOptions; |
5 | use MediaWiki\MediaWikiServices; |
6 | use MediaWiki\WikiMap\WikiMap; |
7 | |
8 | /** @phpcs-require-sorted-array */ |
9 | return [ |
10 | 'JsonConfig.GlobalJsonLinks' => static function ( MediaWikiServices $services ): GlobalJsonLinks { |
11 | return new GlobalJsonLinks( |
12 | new ServiceOptions( GlobalJsonLinks::CONFIG_OPTIONS, $services->getMainConfig() ), |
13 | $services->getConnectionProvider(), |
14 | WikiMap::getCurrentWikiId(), |
15 | ); |
16 | } |
17 | ]; |