It is possible to create a configuration object for each extension or skin during registration from their settings. It will be helpful for extensions to have an automatically generated config and that way, we'll be able to deprecate GlobalVarConfig.
|Open||None||T11968 Reduce use of global and public variables|
|Open||None||T156646 Make a config object for each extension/skin, deprecate GlobalVarConfig and RequestContext::getConfig()|
|Open||Cenarium||T156877 Create a config object for each extension/skin during registration|
They both would make it unnecessary for extensions to set ConfigRegistry, but T155154 suggests a GlobalVarConfig object while this one suggests a new LocalConfig object (see https://gerrit.wikimedia.org/r/#/c/335383/5/includes/config/LocalConfig.php) that would be based only on the extension's own settings and handle merging with local settings. Eventually, this aims to deprecate GlobalVarConfig, and do the same thing for core (achieving a separation of configs and the removal of configuration globals).