Wikibase
MediaWiki Wikibase extension
WbRestApi.ServiceWiring.php File Reference

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...
 

Variable Documentation

◆ return

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