49 parent::__construct( $info );
50 '@phan-var array $info';
51 $this->wiki = $info[
'wiki'];
67 return function ( $index ) {
76 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
78 return $lbFactory->getMainLB( $this->wiki );
87 return $this->wanCache->makeGlobalKey( $this->wiki, ...
$args );
94 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.
getSharedCacheKey(... $args)
Get a key on the primary cache for this repository.
getMasterDB()
Get a connection to the master 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.