protected $tablePrefix;
/** @var array */
- protected $fileFactory = array( 'ForeignDBFile', 'newFromTitle' );
+ protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ];
/** @var array */
- protected $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' );
+ protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ];
+
+ /** @var bool */
+ protected $hasSharedCache;
/**
* @param array|null $info
* @return IDatabase
*/
function getMasterDB() {
- return wfGetDB( DB_MASTER, array(), $this->wiki );
+ return wfGetDB( DB_MASTER, [], $this->wiki );
}
/**
* @return IDatabase
*/
function getSlaveDB() {
- return wfGetDB( DB_SLAVE, array(), $this->wiki );
+ return wfGetDB( DB_REPLICA, [], $this->wiki );
}
/**
protected function getDBFactory() {
$wiki = $this->wiki;
return function( $index ) use ( $wiki ) {
- return wfGetDB( $index, array(), $wiki );
+ return wfGetDB( $index, [], $wiki );
};
}