Manual:$wgConfigRegistry/zh
服务器URL及路徑: $wgConfigRegistry | |
---|---|
Registry of factory functions to create config objects |
|
引进版本: | 1.23.0 (Gerrit change 109850; git #I5a5857f) |
移除版本: | 仍在使用 |
允许的值: | () |
[
'main' => 'GlobalVarConfig::newInstance'
]
|
|
其他设置: 按首字母排序 | 按功能排序 |
详情
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.