|
MediaWiki REL1_35
|
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) | |
Static Public Member Functions | |
| static | destroySingleton () |
| Destroy the singleton instance. | |
| static | singleton () |
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)) -var array<string,array{class:class-string,config:array,instance:object}> | |
Private Attributes | |
| LockManagerGroupFactory | $lmgFactory |
| MimeAnalyzer | $mimeAnalyzer |
| ObjectFactory | $objectFactory |
| ServiceOptions | $options |
| BagOStuff | $srvCache |
| TempFSFileFactory | $tmpFileFactory |
| WANObjectCache | $wanCache |
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 103 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 275 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 230 of file FileBackendGroup.php.
|
static |
Destroy the singleton instance.
Definition at line 89 of file FileBackendGroup.php.
| FileBackendGroup::get | ( | $name | ) |
Get the backend object with a given name.
| string | $name |
| InvalidArgumentException |
Definition at line 200 of file FileBackendGroup.php.
| FileBackendGroup::guessMimeInternal | ( | $storagePath, | |
| $content, | |||
| $fsPath | |||
| ) |
| string | $storagePath | |
| string | null | $content | |
| string | null | $fsPath |
Definition at line 291 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 167 of file FileBackendGroup.php.
|
static |
Definition at line 80 of file FileBackendGroup.php.
|
protected |
(name => ('class' => string, 'config' => array, 'instance' => object)) -var array<string,array{class:class-string,config:array,instance:object}>
Definition at line 42 of file FileBackendGroup.php.
|
private |
Definition at line 57 of file FileBackendGroup.php.
|
private |
Definition at line 54 of file FileBackendGroup.php.
|
private |
Definition at line 63 of file FileBackendGroup.php.
|
private |
Definition at line 45 of file FileBackendGroup.php.
|
private |
Definition at line 48 of file FileBackendGroup.php.
|
private |
Definition at line 60 of file FileBackendGroup.php.
|
private |
Definition at line 51 of file FileBackendGroup.php.
| const FileBackendGroup::CONSTRUCTOR_OPTIONS |
Definition at line 68 of file FileBackendGroup.php.