resourceloader: Add Config parameter to packageFiles callbacks
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 18 Jul 2019 21:48:42 +0000 (14:48 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Thu, 18 Jul 2019 21:48:42 +0000 (14:48 -0700)
commitf2ae03a736408e4544e44a2ad85f946ace29af66
tree31ddd7c52d21898cf54c48a7a31e9394d4f97b65
parent52253ec10a1eb9579bf14f3922a8988d167b27e7
resourceloader: Add Config parameter to packageFiles callbacks

Callbacks used to generate the contents of virtual files in packageFiles
modules only received a ResourceLoaderContext object. They could access
the Config object through ResourceLoaderContext::getConfig(), but that
method is deprecated. Pass the Config object as a second parameter to
these callbacks, so that they don't have to use a deprecated method.

Change-Id: Ia4666914e9b07f298ee5ae30ae8c70a3e83b0910
includes/resourceloader/ResourceLoaderFileModule.php
resources/Resources.php