MediaWiki
master
NullRepo.php
Go to the documentation of this file.
1
<?php
28
class
NullRepo
extends
FileRepo
{
32
public
function
__construct
( $info ) {
33
}
34
35
protected
function
assertWritableRepo
() {
36
// @phan-suppress-previous-line PhanPluginNeverReturnMethod
37
throw
new
MWException
( static::class .
': write operations are not supported.'
);
38
}
39
}
FileRepo
Base class for file repositories.
Definition:
FileRepo.php:48
MWException
MediaWiki exception.
Definition:
MWException.php:32
NullRepo
File repository with no files, for testing purposes.
Definition:
NullRepo.php:28
NullRepo\__construct
__construct( $info)
Definition:
NullRepo.php:32
NullRepo\assertWritableRepo
assertWritableRepo()
Throw an exception if this repo is read-only by design.
Definition:
NullRepo.php:35
includes
filerepo
NullRepo.php
Generated on Wed May 31 2023 19:08:06 for MediaWiki by
1.9.1