MediaWiki REL1_33
NullRepo.php
Go to the documentation of this file.
1<?php
28class NullRepo extends FileRepo {
32 function __construct( $info ) {
33 }
34
35 protected function assertWritableRepo() {
36 throw new MWException( static::class . ': write operations are not supported.' );
37 }
38}
Base class for file repositories.
Definition FileRepo.php:39
MediaWiki exception.
File repository with no files, for performance testing.
Definition NullRepo.php:28
__construct( $info)
Definition NullRepo.php:32
assertWritableRepo()
Throw an exception if this repo is read-only by design.
Definition NullRepo.php:35