Manual:$wgConfigRegistry

Details
Registry of factory functions to create config objects:	Currently only 'GlobalVarConfig' is available.

The 'main' key must be set, and the value should be a valid callable.