*/
class FSRepo extends FileRepo {
/**
- * @param $info array
+ * @param array $info
* @throws MWException
*/
function __construct( array $info ) {
$repoName = $info['name'];
// Get the FS backend configuration
- $backend = new FSFileBackend( array(
+ $backend = new FSFileBackend( [
'name' => $info['name'] . '-backend',
- 'lockManager' => 'fsLockManager',
- 'containerPaths' => array(
+ 'wikiId' => wfWikiID(),
+ 'lockManager' => LockManagerGroup::singleton( wfWikiID() )->get( 'fsLockManager' ),
+ 'containerPaths' => [
"{$repoName}-public" => "{$directory}",
"{$repoName}-temp" => "{$directory}/temp",
"{$repoName}-thumb" => $thumbDir,
"{$repoName}-transcoded" => $transcodedDir,
"{$repoName}-deleted" => $deletedDir
- ),
+ ],
'fileMode' => $fileMode,
- ) );
+ ] );
// Update repo config to use this backend
$info['backend'] = $backend;
}