43 parent::__construct( $info );
44 '@phan-var array $info';
45 $this->dbDomain = $info[
'wiki'];
46 $this->hasAccessibleSharedCache = $info[
'hasSharedCache'];
66 return function ( $index ) {
67 return $this->
getDBLoadBalancer()->getConnectionRef( $index, [], $this->dbDomain );
75 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
77 return $lbFactory->getMainLB( $this->dbDomain );
81 throw new MWException( static::class .
': write operations are not supported.' );
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
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.
getMasterDB()
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.
A repository that stores files in the local filesystem and registers them in the wiki's own database.