Currently, ResourceLoader modules use global object variables such as $wgUser and $wgLang; they should rather get them from a context object (maybe integrated in ResourceLoaderContext?)
----
* ResourceLoader.php:
* [ ] `$wgShowExceptionDetails` in static `formatException()`.
* [ ] `$wgResourceLoaderDebug` and `$wgRequest` in static `inDebugMode()`.
* [ ] Call to `Output::transformCssMedia()` which uses `$wgRequest`.
* ResourceLoaderContext.php
* [ ] `$wgLanguageCode` in `getLanguage()` as fallback. We can probably use ResourceLoader's MW config object now.
* [ ] ResourceLoaderFileModule.php: `$IP`, `$wgResourceBasePath`, `$wgExtensionAssetsPath`.
* [ ] ResourceLoaderImage.php: `$wgSVGConverter`, `$wgSVGConverterPath`.
* [ ] ResourceLoaderModule.php: `$wgContLang` in `getFlip()`.
* ResourceLoaderStartUpModule.php:
* [ ] `$wgContLang` in `getConfigSettings()`.
* [ ] `$wgIncludeLegacyJavaScript` in `getLegacyModules()`. - T130879