Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 14 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace TwoColConflict; |
4 | |
5 | use MediaWiki\MediaWikiServices; |
6 | use MediaWiki\Registration\ExtensionRegistry; |
7 | |
8 | return [ |
9 | |
10 | 'TwoColConflictContext' => static function ( MediaWikiServices $services ): TwoColConflictContext { |
11 | $extensionRegistry = ExtensionRegistry::getInstance(); |
12 | $mobileContext = $extensionRegistry->isLoaded( 'MobileFrontend' ) |
13 | ? $services->getService( 'MobileFrontend.Context' ) |
14 | : null; |
15 | |
16 | return new TwoColConflictContext( |
17 | $services->getMainConfig(), |
18 | $services->getUserOptionsLookup(), |
19 | $extensionRegistry, |
20 | $mobileContext |
21 | ); |
22 | }, |
23 | |
24 | ]; |