43 parent::__construct( $info );
44 '@phan-var array $info';
45 $this->dbDomain = $info[
'wiki'];
46 $this->hasAccessibleSharedCache = $info[
'hasSharedCache'];
61 return function ( $index ) {
62 return $this->
getDBLoadBalancer()->getConnectionRef( $index, [], $this->dbDomain );
70 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
72 return $lbFactory->getMainLB( $this->dbDomain );
76 throw new MWException( static::class .
': write operations are not supported.' );