Podręcznik:$wgConfigRegistry

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgConfigRegistry and the translation is 33% complete.

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語
URLs and file paths: $wgConfigRegistry
Registry of factory functions to create config objects
Wprowadzono w wersji:1.23.0 (Gerrit change 109850; git #I5a5857f)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(array)
Domyślna wartość:
[
	'main' => 'GlobalVarConfig::newInstance'
]

Szczegóły

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).