Manual:$wgConfigRegistry/it
Appearance
| Server URLs and file paths: $wgConfigRegistry | |
|---|---|
| Registry of factory functions to create config objects |
|
| Introdotto nella versione: | 1.23.0 (Gerrit change 109850; git #I5a5857f) |
| Rimosso nella versione: | Still in use |
| Valori concessi: | (array) |
| Valore predefinito: | see below |
| Impostazioni: Alfabetiche | Per funzione | |
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, which is available as the MainConfig service.
Default value
| Versione MediaWiki: | ≥ 1.45 |
[
'main' => 'MediaWiki\\Config\\GlobalVarConfig::newInstance'
]
| Versioni di MediaWiki: | 1.23 – 1.44 |
[
'main' => 'GlobalVarConfig::newInstance'
]