Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 14
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace TwoColConflict;
4
5use ExtensionRegistry;
6use MediaWiki\MediaWikiServices;
7
8return [
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];