|
MediaWiki master
|
Provides a fallback sequence for Config objects. More...
Inherits MediaWiki\Config\Config.
Public Member Functions | ||||||
| __construct (private readonly array $configs,) | ||||||
| get ( $name) | ||||||
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
| ||||||
| has ( $name) | ||||||
Check whether a configuration option is set for the given name.
| ||||||
Provides a fallback sequence for Config objects.
Definition at line 16 of file MultiConfig.php.
| MediaWiki\Config\MultiConfig::__construct | ( | private readonly array | $configs | ) |
| Config[] | $configs | Array of Config objects to use Order matters, the Config objects will be checked in order to see whether they have the requested setting |
Definition at line 25 of file MultiConfig.php.
| MediaWiki\Config\MultiConfig::get | ( | $name | ) |
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
| string | $name | Name of configuration option |
| ConfigException |
Implements MediaWiki\Config\Config.
Definition at line 33 of file MultiConfig.php.
| MediaWiki\Config\MultiConfig::has | ( | $name | ) |
Check whether a configuration option is set for the given name.
| string | $name | Name of configuration option |
Implements MediaWiki\Config\Config.
Definition at line 46 of file MultiConfig.php.