MediaWiki master
TempFileRepo.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\FileRepo;
4
5use LogicException;
6
13class TempFileRepo extends FileRepo {
14 public function getTempRepo(): never {
15 throw new LogicException( "Cannot get a temp repo from a temp repo." );
16 }
17}
18
20class_alias( TempFileRepo::class, 'TempFileRepo' );
Base class for file repositories.
Definition FileRepo.php:51
FileRepo for temporary files created by FileRepo::getTempRepo()
getTempRepo()
Get a temporary private FileRepo associated with this repo.