40 parent::__construct( $info );
41 '@phan-var array $info';
42 $this->dbDomain = $info[
'wiki'];
43 $this->hasAccessibleSharedCache = $info[
'hasSharedCache'];
63 return function ( $index ) {
64 return $this->
getDBLoadBalancer()->getConnectionRef( $index, [], $this->dbDomain );
72 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
74 return $lbFactory->getMainLB( $this->dbDomain );
78 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.
Local repository that stores files in the local filesystem and registers them in the wiki's own datab...