Move TempFileRepo to a separate file

Change-Id: I6fc0870cc82a7b19859abc00bd4b2ecee6c0fc9e
This commit is contained in:
Aaron Schulz 2016-12-17 01:12:32 -08:00
parent b8da5c8374
commit 9939781fe7
3 changed files with 10 additions and 10 deletions

View file

@ -1425,7 +1425,7 @@ $wgAutoloadLocalClasses = [
'TablePager' => __DIR__ . '/includes/pager/TablePager.php',
'TagLogFormatter' => __DIR__ . '/includes/logging/TagLogFormatter.php',
'TempFSFile' => __DIR__ . '/includes/libs/filebackend/fsfile/TempFSFile.php',
'TempFileRepo' => __DIR__ . '/includes/filerepo/FileRepo.php',
'TempFileRepo' => __DIR__ . '/includes/filerepo/TempFileRepo.php',
'TemplateParser' => __DIR__ . '/includes/TemplateParser.php',
'TemplatesOnThisPageFormatter' => __DIR__ . '/includes/TemplatesOnThisPageFormatter.php',
'TestFileOpPerformance' => __DIR__ . '/maintenance/fileOpPerfTest.php',

View file

@ -1924,12 +1924,3 @@ class FileRepo {
return $this->supportsSha1URLs;
}
}
/**
* FileRepo for temporary files created via FileRepo::getTempRepo()
*/
class TempFileRepo extends FileRepo {
public function getTempRepo() {
throw new MWException( "Cannot get a temp repo from a temp repo." );
}
}

View file

@ -0,0 +1,9 @@
<?php
/**
* FileRepo for temporary files created via FileRepo::getTempRepo()
*/
class TempFileRepo extends FileRepo {
public function getTempRepo() {
throw new MWException( "Cannot get a temp repo from a temp repo." );
}
}