56 private $readOnlyMode;
59 private $statsFactory;
65 private $globalIdGenerator;
82 $this->instances = [];
83 $this->options = $options;
84 $this->readOnlyMode = $readOnlyMode;
85 $this->statsFactory = $statsFactory;
86 $this->wanCache = $wanCache;
87 $this->globalIdGenerator = $globalIdGenerator;
97 if ( $domain === false ) {
98 $domain = WikiMap::getCurrentWikiDbDomain()->getId();
103 $isCurrentWiki = WikiMap::isCurrentWikiDbDomain( $domain );
104 if ( !$isCurrentWiki ) {
105 $wikiId = WikiMap::getWikiIdFromDbDomain( $domain );
108 throw new LogicException(
"Domain '{$domain}' is not recognized." );
112 if ( !isset( $this->instances[$domain] ) ) {
113 $localJobClasses = $isCurrentWiki
117 $this->instances[$domain] =
new JobQueueGroup(
125 $this->globalIdGenerator
129 return $this->instances[$domain];
if(!defined('MW_SETUP_CALLBACK'))
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()