MediaWiki 1.39.10
|
Class to handle file backend registration. More...
Public Member Functions | |
__construct (ServiceOptions $options, ConfiguredReadOnlyMode $configuredReadOnlyMode, 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 37 of file FileBackendGroup.php.
FileBackendGroup::__construct | ( | ServiceOptions | $options, |
ConfiguredReadOnlyMode | $configuredReadOnlyMode, | ||
BagOStuff | $srvCache, | ||
WANObjectCache | $wanCache, | ||
MimeAnalyzer | $mimeAnalyzer, | ||
LockManagerGroupFactory | $lmgFactory, | ||
TempFSFileFactory | $tmpFileFactory, | ||
ObjectFactory | $objectFactory ) |
ServiceOptions | $options | |
ConfiguredReadOnlyMode | $configuredReadOnlyMode | |
BagOStuff | $srvCache | |
WANObjectCache | $wanCache | |
MimeAnalyzer | $mimeAnalyzer | |
LockManagerGroupFactory | $lmgFactory | |
TempFSFileFactory | $tmpFileFactory | |
ObjectFactory | $objectFactory |
Definition at line 86 of file FileBackendGroup.php.
References MediaWiki\Config\ServiceOptions\get(), and ConfiguredReadOnlyMode\getReason().
FileBackendGroup::backendFromPath | ( | $storagePath | ) |
Get an appropriate backend object from a storage path.
string | $storagePath |
Definition at line 254 of file FileBackendGroup.php.
References FileBackend\splitStoragePath().
FileBackendGroup::config | ( | $name | ) |
Get the config array for a backend object with a given name.
string | $name |
InvalidArgumentException |
Definition at line 214 of file FileBackendGroup.php.
Referenced by get().
FileBackendGroup::get | ( | $name | ) |
Get the backend object with a given name.
string | $name |
InvalidArgumentException |
Definition at line 184 of file FileBackendGroup.php.
References config().
FileBackendGroup::guessMimeInternal | ( | $storagePath, | |
$content, | |||
$fsPath ) |
string | $storagePath | |
string | null | $content | |
string | null | $fsPath |
Definition at line 270 of file FileBackendGroup.php.
References $content, $ext, $type, and FileBackend\extensionFromPath().
|
protected |
Register an array of file backend configurations.
array[] | $configs | |
string | null | $readOnlyReason |
InvalidArgumentException |
Definition at line 151 of file FileBackendGroup.php.
|
protected |
(name => ('class' => string, 'config' => array, 'instance' => object))
Definition at line 42 of file FileBackendGroup.php.
const FileBackendGroup::CONSTRUCTOR_OPTIONS |
Definition at line 68 of file FileBackendGroup.php.