MediaWiki master
NullRepo.php
Go to the documentation of this file.
1<?php
28class NullRepo extends FileRepo {
32 public function __construct( $info ) {
33 }
34
38 protected function assertWritableRepo() {
39 throw new LogicException( static::class . ': write operations are not supported.' );
40 }
41}
Base class for file repositories.
Definition FileRepo.php:51
File repository with no files, for testing purposes.
Definition NullRepo.php:28
__construct( $info)
Definition NullRepo.php:32
assertWritableRepo()
Definition NullRepo.php:38