diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index a2a6d3439..000ae7627 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -1,28 +1,30 @@ static function ( MediaWikiServices $services ) { + 'Popups.Config' => static function ( MediaWikiServices $services ): Config { return $services->getService( 'ConfigFactory' ) ->makeConfig( PopupsContext::EXTENSION_NAME ); }, - 'Popups.GadgetsIntegration' => static function ( MediaWikiServices $services ) { + 'Popups.GadgetsIntegration' => static function ( MediaWikiServices $services ): PopupsGadgetsIntegration { return new PopupsGadgetsIntegration( $services->getService( 'Popups.Config' ), ExtensionRegistry::getInstance() ); }, - 'Popups.Logger' => static function ( MediaWikiServices $services ) { + 'Popups.Logger' => static function ( MediaWikiServices $services ): LoggerInterface { return LoggerFactory::getInstance( PopupsContext::LOGGER_CHANNEL ); }, - 'Popups.Context' => static function ( MediaWikiServices $services ) { + 'Popups.Context' => static function ( MediaWikiServices $services ): PopupsContext { return new PopupsContext( $services->getService( 'Popups.Config' ), ExtensionRegistry::getInstance(),