WikiLambda
MediaWiki WikiLambda extension
|
WikiLambda Service Wiring. More...
Variables | |
MediaWiki\Extension\WikiLambda::return [ 'WikiLambdaZObjectStore'=> static function(MediaWikiServices $services) { return new ZObjectStore($services->getDBLoadBalancerFactory(), $services->getTitleFactory(), $services->getWikiPageFactory(), $services->getRevisionStore(), $services->getUserGroupManager(), LoggerFactory::getInstance( 'WikiLambda'));}, 'WikiLambdaZObjectAuthorization'=> static function(MediaWikiServices $services) { return new ZObjectAuthorization(LoggerFactory::getInstance( 'WikiLambda'));}, 'WikiLambdaZObjectStash'=> static function(MediaWikiServices $services) { $extensionConfig=$services->getConfigFactory() ->makeConfig( 'WikiLambda');$requestedCache=$extensionConfig->get( 'WikiLambdaObjectCache');if(! $requestedCache) { return $services->getMainObjectStash();} $mainConfig=$services->getMainConfig();$cacheParameters=$mainConfig->get(MainConfigNames::ObjectCaches)[$requestedCache] ?? null;if(! $cacheParameters) { throw new ConfigException("\$wgObjectCaches must have \"$requestedCache\" set (via WikiLambdaObjectCache)");} return ObjectCache::newFromParams( $cacheParameters);},] | |
@codeCoverageIgnore | |
WikiLambda Service Wiring.