56 private $readOnlyMode;
59 private $statsdDataFactory;
65 private $globalIdGenerator;
82 $this->instances = [];
83 $this->options = $options;
84 $this->readOnlyMode = $readOnlyMode;
85 $this->statsdDataFactory = $statsdDataFactory;
86 $this->wanCache = $wanCache;
87 $this->globalIdGenerator = $globalIdGenerator;
97 if ( $domain === false ) {
98 $domain = WikiMap::getCurrentWikiDbDomain()->getId();
101 if ( !isset( $this->instances[$domain] ) ) {
104 $wikiId = WikiMap::getWikiIdFromDbDomain( $domain );
106 !WikiMap::isCurrentWikiDbDomain( $domain ) &&
109 $invalidDomain =
true;
111 $invalidDomain =
false;
121 $this->statsdDataFactory,
123 $this->globalIdGenerator
127 return $this->instances[$domain];
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
Class to handle enqueueing of background jobs.
A class containing constants representing the names of configuration variables.
const JobTypeConf
Name constant for the JobTypeConf setting, for use with Config::get()
const LocalDatabases
Name constant for the LocalDatabases setting, for use with Config::get()
const JobClasses
Name constant for the JobClasses setting, for use with Config::get()
const JobTypesExcludedFromDefaultQueue
Name constant for the JobTypesExcludedFromDefaultQueue setting, for use with Config::get()
Multi-datacenter aware caching interface.
Helper tools for dealing with other locally-hosted wikis.
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.