Manual:$wgConfigRegistry

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

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