Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
0.00% covered (danger)
0.00%
0 / 10
<?php
namespace TwoColConflict;
use ExtensionRegistry;
use MediaWiki\MediaWikiServices;
use TwoColConflict\Logging\ThreeWayMerge;
return [
    'TwoColConflictContext' => static function ( MediaWikiServices $services ) {
        $extensionRegistry = ExtensionRegistry::getInstance();
        $mobileContext = $extensionRegistry->isLoaded( 'MobileFrontend' )
            ? $services->getService( 'MobileFrontend.Context' )
            : null;
        return new TwoColConflictContext(
            $services->getMainConfig(),
            $services->getUserOptionsLookup(),
            $extensionRegistry,
            $mobileContext
        );
    },
    'TwoColConflictThreeWayMerge' => static function ( MediaWikiServices $services ) {
        return new ThreeWayMerge();
    },
];