28use Psr\Log\LoggerInterface;
45 private LoggerInterface $logger;
48 private $clearCacheCallbacks;
73 LoggerInterface $logger,
75 array $clearCacheCallbacks = []
77 $this->options = $options;
78 $this->readOnlyMode = $readOnlyMode;
79 $this->dbLoadBalancerFactory = $dbLoadBalancerFactory;
80 $this->hookContainer = $hookContainer;
81 $this->userEditTracker = $userEditTracker;
82 $this->groupPermissionLookup = $groupPermissionsLookup;
83 $this->jobQueueGroupFactory = $jobQueueGroupFactory;
84 $this->logger = $logger;
85 $this->tempUserConfig = $tempUserConfig;
86 $this->clearCacheCallbacks = $clearCacheCallbacks;
94 if ( is_string( $wikiId ) && $this->dbLoadBalancerFactory->getLocalDomainID() === $wikiId ) {
95 $wikiId = UserIdentity::LOCAL;
102 $this->dbLoadBalancerFactory,
103 $this->hookContainer,
104 $this->userEditTracker,
105 $this->groupPermissionLookup,
106 $this->jobQueueGroupFactory->makeJobQueueGroup( $wikiId ),
108 $this->tempUserConfig,
109 $this->clearCacheCallbacks,
if(!defined('MW_SETUP_CALLBACK'))