MediaWiki master
|
Class to handle file backend registration. More...
Public Member Functions | |
__construct (ServiceOptions $options, ReadOnlyMode $readOnlyMode, BagOStuff $srvCache, WANObjectCache $wanCache, MimeAnalyzer $mimeAnalyzer, LockManagerGroupFactory $lmgFactory, TempFSFileFactory $tmpFileFactory, ObjectFactory $objectFactory) | |
backendFromPath ( $storagePath) | |
Get an appropriate backend object from a storage path. | |
config ( $name) | |
Get the config array for a backend object with a given name. | |
get ( $name) | |
Get the backend object with a given name. | |
guessMimeInternal ( $storagePath, $content, $fsPath) | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Protected Member Functions | |
register (array $configs, $readOnlyReason=null) | |
Register an array of file backend configurations. | |
Protected Attributes | |
array[] | $backends = [] |
(name => ('class' => string, 'config' => array, 'instance' => object)) | |
Class to handle file backend registration.
Definition at line 51 of file FileBackendGroup.php.
MediaWiki\FileBackend\FileBackendGroup::__construct | ( | ServiceOptions | $options, |
ReadOnlyMode | $readOnlyMode, | ||
BagOStuff | $srvCache, | ||
WANObjectCache | $wanCache, | ||
MimeAnalyzer | $mimeAnalyzer, | ||
LockManagerGroupFactory | $lmgFactory, | ||
TempFSFileFactory | $tmpFileFactory, | ||
ObjectFactory | $objectFactory ) |
ServiceOptions | $options | |
ReadOnlyMode | $readOnlyMode | |
BagOStuff | $srvCache | |
WANObjectCache | $wanCache | |
MimeAnalyzer | $mimeAnalyzer | |
LockManagerGroupFactory | $lmgFactory | |
TempFSFileFactory | $tmpFileFactory | |
ObjectFactory | $objectFactory |
Definition at line 100 of file FileBackendGroup.php.
References MediaWiki\MainConfigNames\DirectoryMode, MediaWiki\MainConfigNames\FileBackends, MediaWiki\MainConfigNames\ForeignFileRepos, MediaWiki\Config\ServiceOptions\get(), Wikimedia\Rdbms\ReadOnlyMode\getConfiguredReason(), and MediaWiki\MainConfigNames\LocalFileRepo.
MediaWiki\FileBackend\FileBackendGroup::backendFromPath | ( | $storagePath | ) |
Get an appropriate backend object from a storage path.
string | $storagePath |
Definition at line 265 of file FileBackendGroup.php.
References Wikimedia\FileBackend\FileBackend\splitStoragePath().
MediaWiki\FileBackend\FileBackendGroup::config | ( | $name | ) |
Get the config array for a backend object with a given name.
string | $name |
Definition at line 225 of file FileBackendGroup.php.
References Profiler\instance().
Referenced by MediaWiki\FileBackend\FileBackendGroup\get().
MediaWiki\FileBackend\FileBackendGroup::get | ( | $name | ) |
Get the backend object with a given name.
string | $name |
Definition at line 195 of file FileBackendGroup.php.
References MediaWiki\FileBackend\FileBackendGroup\config().
MediaWiki\FileBackend\FileBackendGroup::guessMimeInternal | ( | $storagePath, | |
$content, | |||
$fsPath ) |
string | $storagePath | |
string | null | $content | |
string | null | $fsPath |
Definition at line 281 of file FileBackendGroup.php.
References Wikimedia\FileBackend\FileBackend\extensionFromPath().
|
protected |
Register an array of file backend configurations.
array[] | $configs | |
string | null | $readOnlyReason |
Definition at line 164 of file FileBackendGroup.php.
|
protected |
(name => ('class' => string, 'config' => array, 'instance' => object))
Definition at line 56 of file FileBackendGroup.php.
const MediaWiki\FileBackend\FileBackendGroup::CONSTRUCTOR_OPTIONS |
Definition at line 82 of file FileBackendGroup.php.