Manual:$wgConfigRegistry

Details
Registry of factory functions to create  objects: Currently only 'GlobalVarConfig' and 'HashConfig' are available.

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