MediaWiki  master
Go to the documentation of this file.
1 <?php
8 class TempFileRepo extends FileRepo {
9  public function getTempRepo() {
10  // @phan-suppress-previous-line PhanPluginNeverReturnMethod
11  throw new MWException( "Cannot get a temp repo from a temp repo." );
12  }
13 }
Base class for file repositories.
Definition: FileRepo.php:50
MediaWiki exception.
Definition: MWException.php:33
FileRepo for temporary files created by FileRepo::getTempRepo()
Definition: TempFileRepo.php:8
Get a temporary private FileRepo associated with this repo.
Definition: TempFileRepo.php:9