MediaWiki  master
Config Interface Reference

Interface for configuration instances. More...

Inheritance diagram for Config:

Public Member Functions

 get ( $name)
 Get a configuration variable such as "Sitename" or "UploadMaintenance.". More...
 
 has ( $name)
 Check whether a configuration option is set for the given name. More...
 

Detailed Description

Interface for configuration instances.

Stability: stable
to implement
Since
1.23

Definition at line 30 of file Config.php.

Member Function Documentation

◆ get()

Config::get (   $name)

Get a configuration variable such as "Sitename" or "UploadMaintenance.".

Parameters
string$nameName of configuration option
Returns
mixed Value configured
Exceptions
ConfigException

Implemented in MultiConfig, HashConfig, GlobalVarConfig, and EtcdConfig.

Referenced by MediaWiki\Auth\Throttler\__construct(), MediaWiki\Deferred\LinksUpdate\TemplateLinksTable\__construct(), LocalIdLookup\__construct(), McrUndoAction\__construct(), MediaWiki\Deferred\LinksUpdate\LinksUpdate\__construct(), MediaWiki\Maintenance\MaintenanceRunner\activateProfiler(), PopulateImageSha1\doDBUpdates(), MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\doIncrementalUpdate(), MediaWiki\emitBufferedStatsdData(), UpdateSpecialPages\execute(), Maintenance\finalSetup(), MultiConfig\get(), ApiQueryUserInfo\getCentralUserInfo(), QueryPage\getDisabledQueryPages(), MediaWiki\Auth\UserDataAuthenticationRequest\getFieldInfo(), Installer\getInstallerConfig(), ApiUpload\getMinUploadChunkSize(), MediaWiki\ResourceLoader\UserModule\getPages(), MediaWiki\ResourceLoader\UserStylesModule\getPages(), MediaWiki\ResourceLoader\WikiModule\getPages(), MediaWiki\ResourceLoader\FileModule\getScriptURLsForDebug(), MediaWiki\Config\ConfigRepository\getValueOf(), ContentSecurityPolicy\isNonceRequired(), MediaWiki\Settings\LocalSettingsLoader\loadLocalSettingsFile(), MediaWiki\Settings\WikiFarmSettingsLoader\loadWikiFarmSettings(), ContentSecurityPolicy\makeCSPDirectives(), MediaWiki\MediaWikiServices\newInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest\newRandom(), MediaWiki\Maintenance\MaintenanceRunner\overrideConfig(), OutputPage\transformResourcePath(), and MediaWiki\Settings\Config\ConfigSchemaAggregator\validateConfig().

◆ has()

Config::has (   $name)

Check whether a configuration option is set for the given name.

Parameters
string$nameName of configuration option
Returns
bool
Since
1.24

Implemented in MultiConfig, HashConfig, GlobalVarConfig, and EtcdConfig.

Referenced by MediaWiki\Settings\Config\ConfigSchemaAggregator\validateConfig().


The documentation for this interface was generated from the following file: