MediaWikiServices::getInstance() lazy-initializes the service container and is hardcoded to use GlobalVarConfig, which is not so great. resetGlobalInstance can be used to replace that configuration, but it's a bit overcomplicated and causes T153256. It would be nicer if endpoints would have to explicitly create the services container and pass in a configuration object, and getInstance would just throw if called before that. (And then the long term goal is that nothing but endpoints use the service container so getInstance won't be needed at all...)
Description
Description
Related Objects
Related Objects
- Mentioned In
- T187586: Installer fails in RevisionStore
- Mentioned Here
- T153256: Unable to overwrite services using MediaWikiServices hook