62 LoggerInterface $logger,
76 $this->options = $options;
77 $this->logger = $logger;
78 $this->actorStoreFactory = $actorStoreFactory;
79 $this->blockRestrictionStoreFactory = $blockRestrictionStoreFactory;
80 $this->commentStore = $commentStore;
81 $this->hookContainer = $hookContainer;
82 $this->loadBalancerFactory = $loadBalancerFactory;
83 $this->readOnlyMode = $readOnlyMode;
84 $this->userFactory = $userFactory;
85 $this->tempUserConfig = $tempUserConfig;
86 $this->blockUtilsFactory = $blockUtilsFactory;
87 $this->autoblockExemptionList = $autoblockExemptionList;
95 if ( is_string( $wikiId ) && $this->loadBalancerFactory->getLocalDomainID() === $wikiId ) {
96 $wikiId = DatabaseBlock::LOCAL;
99 $storeCacheKey = $wikiId === DatabaseBlock::LOCAL ?
'LOCAL' :
'crosswikistore-' . $wikiId;
100 if ( !isset( $this->storeCache[$storeCacheKey] ) ) {
104 $this->actorStoreFactory,
105 $this->blockRestrictionStoreFactory->getBlockRestrictionStore( $wikiId ),
107 $this->hookContainer,
108 $this->loadBalancerFactory,
111 $this->tempUserConfig,
112 $this->blockUtilsFactory->getBlockUtils( $wikiId ),
113 $this->autoblockExemptionList,
117 return $this->storeCache[$storeCacheKey];