Factory class used to create InterwikiResolver.
More...
|
| getResolver (SearchConfig $config, \MultiHttpClient $client=null, WANObjectCache $wanCache=null, BagOStuff $srvCache=null, InterwikiLookup $iwLookup=null) |
| Based on config variables available in $config returns the approriate the InterwikiResolver implementation.
|
|
|
const | SERVICE = 'CirrusSearchInterwikiResolverFactory' |
| @const string service name used in MediaWikiServices
|
|
Factory class used to create InterwikiResolver.
◆ getResolver()
CirrusSearch\InterwikiResolverFactory::getResolver |
( |
SearchConfig | $config, |
|
|
\MultiHttpClient | $client = null, |
|
|
WANObjectCache | $wanCache = null, |
|
|
BagOStuff | $srvCache = null, |
|
|
InterwikiLookup | $iwLookup = null ) |
Based on config variables available in $config returns the approriate the InterwikiResolver implementation.
Fallback to EmptyInterwikiResolver.
- Parameters
-
SearchConfig | $config | |
\MultiHttpClient | null | $client | http client to fetch cirrus config |
WANObjectCache | null | $wanCache | Cache object for caching repeated requests |
BagOStuff | null | $srvCache | Local server cache object for caching repeated requests |
InterwikiLookup | null | $iwLookup | |
- Returns
- InterwikiResolver
- Exceptions
-
Exception
- See also
- CirrusSearchInterwikiResolverFactory::accepts()
-
SiteMatrixInterwikiResolver::accepts()
◆ newFactory()
static CirrusSearch\InterwikiResolverFactory::newFactory |
( |
| ) |
|
|
static |
- Returns
- InterwikiResolverFactory
The documentation for this class was generated from the following file:
- includes/InterwikiResolverFactory.php