Wikibase
MediaWiki Wikibase extension
|
Variables | |
return [ 'WbRestApi.GetItem'=> function(MediaWikiServices $services):GetItem { return new GetItem(new WikibaseEntityLookupItemRevisionRetriever(WikibaseRepo::getEntityRevisionLookup( $services)), new ItemSerializer(WikibaseRepo::getBaseDataModelSerializerFactory( $services) ->newItemSerializer()));}, 'WbRestApi.RouteHandlerFeatureToggle'=> function(MediaWikiServices $services):RouteHandlerFeatureToggle { return new RouteHandlerFeatureToggle(WikibaseRepo::getSettings( $services) ->getSetting( 'restApiEnabled'), new ApiNotEnabledRouteHandler());},] | |
-require-sorted-array More... | |
return['WbRestApi.GetItem'=> function(MediaWikiServices $services):GetItem { return new GetItem( new WikibaseEntityLookupItemRevisionRetriever( WikibaseRepo::getEntityRevisionLookup($services)), new ItemSerializer( WikibaseRepo::getBaseDataModelSerializerFactory($services) ->newItemSerializer()));}, 'WbRestApi.RouteHandlerFeatureToggle'=> function(MediaWikiServices $services):RouteHandlerFeatureToggle { return new RouteHandlerFeatureToggle( WikibaseRepo::getSettings($services) ->getSetting('restApiEnabled'), new ApiNotEnabledRouteHandler());},] |
-require-sorted-array