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 / 15
<?php
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use Popups\PopupsContext;
use Popups\PopupsGadgetsIntegration;
/**
 * @codeCoverageIgnore
 */
return [
    'Popups.Config' => static function ( MediaWikiServices $services ) {
        return $services->getService( 'ConfigFactory' )
            ->makeConfig( PopupsContext::EXTENSION_NAME );
    },
    'Popups.GadgetsIntegration' => static function ( MediaWikiServices $services ) {
        return new PopupsGadgetsIntegration(
            $services->getService( 'Popups.Config' ),
            ExtensionRegistry::getInstance()
        );
    },
    'Popups.Logger' => static function ( MediaWikiServices $services ) {
        return LoggerFactory::getInstance( PopupsContext::LOGGER_CHANNEL );
    },
    'Popups.Context' => static function ( MediaWikiServices $services ) {
        return new PopupsContext(
            $services->getService( 'Popups.Config' ),
            ExtensionRegistry::getInstance(),
            $services->getService( 'Popups.GadgetsIntegration' ),
            $services->getUserOptionsLookup()
        );
    }
];