Manual:$wgConfigRegistry/it

From Linux Web Expert

<translate> Server URLs and file paths</translate>: $wgConfigRegistry
Registry of factory functions to create config objects
<translate> Introduced in version:</translate>1.23.0 (Gerrit change 109850; git #I5a5857f)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>
[
	'main' => 'GlobalVarConfig::newInstance'
]

Dettagli

Registry of factory functions to create Config objects. MediaWiki core provides GlobalVarConfig and HashConfig; extensions can create their own implementations of the interface if they wish, although it's typically not needed. The 'main' key must be set, and the value should be a valid callable. It's used for creating the main config object (available as the MainConfig service).