CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\InterwikiResolverFactory Class Reference

Factory class used to create InterwikiResolver. More...

Static Public Member Functions

static build (SearchConfig $config, WANObjectCache $wanCache, InterwikiLookup $iwLookup, ExtensionRegistry $extensionRegistry, MultiHttpClient $client)
 Based on config variables available in $config returns the approriate the InterwikiResolver implementation.
 

Detailed Description

Factory class used to create InterwikiResolver.

Member Function Documentation

◆ build()

static CirrusSearch\InterwikiResolverFactory::build ( SearchConfig $config,
WANObjectCache $wanCache,
InterwikiLookup $iwLookup,
ExtensionRegistry $extensionRegistry,
MultiHttpClient $client )
static

Based on config variables available in $config returns the approriate the InterwikiResolver implementation.

Fallback to EmptyInterwikiResolver.

Parameters
SearchConfig$config
WANObjectCache$wanCacheCache object for caching repeated requests
InterwikiLookup$iwLookup
ExtensionRegistry$extensionRegistry
MultiHttpClient$clienthttp client to fetch cirrus config
Returns
InterwikiResolver
See also
CirrusSearchInterwikiResolverFactory::accepts()
SiteMatrixInterwikiResolver::accepts()

The documentation for this class was generated from the following file: