40 parent::__construct( $info );
41 '@phan-var array $info';
42 $this->dbDomain = $info[
'wiki'];
43 $this->hasAccessibleSharedCache = $info[
'hasSharedCache'];
58 return function ( $index ) {
59 return $this->
getDBLoadBalancer()->getConnectionRef( $index, [], $this->dbDomain );
67 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
69 return $lbFactory->getMainLB( $this->dbDomain );
73 throw new MWException( static::class .
': write operations are not supported.' );
getInfo()
Return information about the repository.
A foreign repository with a MediaWiki database accessible via the configured LBFactory.
getInfo()
Return information about the repository.
getPrimaryDB()
Get a connection to the primary DB.
array $fileFromRowFactory
assertWritableRepo()
Throw an exception if this repo is read-only by design.
getReplicaDB()
Get a connection to the replica DB.
Local repository that stores files in the local filesystem and registers them in the wiki's own datab...