99 LoggerInterface $logger,
113 $this->options = $options;
114 $this->logger = $logger;
115 $this->actorStoreFactory = $actorStoreFactory;
116 $this->blockRestrictionStoreFactory = $blockRestrictionStoreFactory;
117 $this->commentStore = $commentStore;
118 $this->hookContainer = $hookContainer;
119 $this->loadBalancerFactory = $loadBalancerFactory;
120 $this->readOnlyMode = $readOnlyMode;
121 $this->userFactory = $userFactory;
122 $this->tempUserConfig = $tempUserConfig;
123 $this->blockUtilsFactory = $blockUtilsFactory;
124 $this->autoblockExemptionList = $autoblockExemptionList;
132 if ( is_string( $wikiId ) && $this->loadBalancerFactory->getLocalDomainID() === $wikiId ) {
133 $wikiId = DatabaseBlock::LOCAL;
136 $storeCacheKey = $wikiId === DatabaseBlock::LOCAL ?
'LOCAL' :
'crosswikistore-' . $wikiId;
137 if ( !isset( $this->storeCache[$storeCacheKey] ) ) {
141 $this->actorStoreFactory,
142 $this->blockRestrictionStoreFactory->getBlockRestrictionStore( $wikiId ),
144 $this->hookContainer,
145 $this->loadBalancerFactory,
148 $this->tempUserConfig,
149 $this->blockUtilsFactory->getBlockUtils( $wikiId ),
150 $this->autoblockExemptionList,
154 return $this->storeCache[$storeCacheKey];