16use Psr\Log\LoggerInterface;
32 private LoggerInterface $logger;
46 private array $storeCache = [];
50 LoggerInterface $logger,
65 $this->options = $options;
66 $this->logger = $logger;
67 $this->actorStoreFactory = $actorStoreFactory;
68 $this->blockRestrictionStoreFactory = $blockRestrictionStoreFactory;
69 $this->commentStore = $commentStore;
70 $this->hookContainer = $hookContainer;
71 $this->loadBalancerFactory = $loadBalancerFactory;
72 $this->readOnlyMode = $readOnlyMode;
73 $this->userFactory = $userFactory;
74 $this->tempUserConfig = $tempUserConfig;
75 $this->crossWikiBlockTargetFactory = $crossWikiBlockTargetFactory;
76 $this->autoblockExemptionList = $autoblockExemptionList;
77 $this->sessionManager = $sessionManager;
81 if ( is_string( $wikiId ) && $this->loadBalancerFactory->getLocalDomainID() === $wikiId ) {
86 if ( !isset( $this->storeCache[$storeCacheKey] ) ) {
90 $this->actorStoreFactory,
91 $this->blockRestrictionStoreFactory->getBlockRestrictionStore( $wikiId ),
94 $this->loadBalancerFactory,
97 $this->tempUserConfig,
98 $this->crossWikiBlockTargetFactory->getFactory( $wikiId ),
99 $this->autoblockExemptionList,
100 $this->sessionManager,
104 return $this->storeCache[$storeCacheKey];
if(!defined('MW_SETUP_CALLBACK'))