static function ( MediaWikiServices $services ): Definitions { return new Definitions( $services->getSpecialPageFactory() ); }, 'Minerva.Menu.PageActions' => static function ( MediaWikiServices $services ): PageActions { return new PageActions( $services->getService( 'Minerva.LanguagesHelper' ), $services->getService( 'Minerva.Permissions' ), $services->getService( 'Minerva.SkinOptions' ), $services->getService( 'Minerva.SkinUserPageHelper' ), $services->getWatchlistManager() ); }, 'Minerva.SkinUserPageHelper' => static function ( MediaWikiServices $services ): SkinUserPageHelper { return new SkinUserPageHelper( $services->getUserFactory(), $services->getUserNameUtils() ); }, 'Minerva.LanguagesHelper' => static function ( MediaWikiServices $services ): LanguagesHelper { return new LanguagesHelper( $services->getLanguageConverterFactory() ); }, 'Minerva.SkinOptions' => static function ( MediaWikiServices $services ): SkinOptions { return new SkinOptions( $services->getHookContainer(), $services->getService( 'Minerva.SkinUserPageHelper' ) ); }, 'Minerva.Permissions' => static function ( MediaWikiServices $services ): IMinervaPagePermissions { return new MinervaPagePermissions( $services->getService( 'Minerva.SkinOptions' ), $services->getService( 'Minerva.LanguagesHelper' ), $services->getPermissionManager(), $services->getContentHandlerFactory(), $services->getUserFactory(), $services->getWatchlistManager() ); } ];