resourceloader: Deprecate ResourceLoaderContext::getConfig and ::getLogger
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 11 Apr 2019 22:22:08 +0000 (23:22 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 13 Jun 2019 17:28:58 +0000 (18:28 +0100)
commit3656607b7daa4b1a2b059e07f1c93c6ce3d2ec51
treeeb97fe6ad5245ecb287757130b1c9976b0fd5827
parent84395e9f3dab6779740c922963b6d9d961015550
resourceloader: Deprecate ResourceLoaderContext::getConfig and ::getLogger

The methods existed for two use cases.

1. Inside ResourceLoaderContext, usage was removed with I4e4ee758cd22.
2. In Module class methods that get $context, already have their own
   Config and Logger instances injected from ResourceLoader::getModule(),
   which should be used instead.

Deprecating these opens the paths for making ResourceLoaderContext
a purer value object with no ResourceLoader, Config, or Logger objects
needing to be passed (in the future).

Bug: T32956
Change-Id: I74a9535918ea43b2c00073c5d4469f864d1eeb41
RELEASE-NOTES-1.34
includes/resourceloader/ResourceLoaderContext.php
includes/resourceloader/ResourceLoaderStartUpModule.php
tests/phpunit/includes/resourceloader/ResourceLoaderContextTest.php