registration: Apply ResourceFileModulePaths to all modules
authorKunal Mehta <legoktm@gmail.com>
Wed, 11 Feb 2015 00:43:12 +0000 (16:43 -0800)
committerCatrope <roan.kattouw@gmail.com>
Wed, 11 Feb 2015 01:46:11 +0000 (01:46 +0000)
commit18aab5e39503837c858f7d38992d067b644983a4
tree960fb6c2d3e5fceea0f576878f016c1ba903a02e
parent62a6b90b2acfb248338a37ed15af047c0d424b4d
registration: Apply ResourceFileModulePaths to all modules

Previously any module definition that specified a "class" was skipped. This
is problematic for custom modules that extend ResourceLoaderFileModule and
should be using the default paths.

Since we can't determine at initialization time whether a module class is a
ResourceLoaderFileModule or not, just add the default paths to all modules,
and leave it up to the individual classes to use the extra arguments or not.

Change-Id: Iee5d178343326030968755983f62629b81ef3c88
includes/registration/ExtensionProcessor.php
tests/phpunit/includes/registration/ExtensionProcessorTest.php