aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/TempFileRepo.php
blob: 3c513e5fc2603bfeeead540fea0fe21658e4a41c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace MediaWiki\FileRepo;

use LogicException;

/**
 * FileRepo for temporary files created by FileRepo::getTempRepo()
 *
 * @internal
 * @ingroup FileRepo
 */
class TempFileRepo extends FileRepo {
	/**
	 * @return never
	 */
	public function getTempRepo() {
		throw new LogicException( "Cannot get a temp repo from a temp repo." );
	}
}

/** @deprecated class alias since 1.44 */
class_alias( TempFileRepo::class, 'TempFileRepo' );