registration: Simplify extracting path based globals
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 10 Feb 2018 06:21:19 +0000 (22:21 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 10 Feb 2018 06:33:10 +0000 (22:33 -0800)
commitd3b580977d71e1bf93279301d90790cf3916d2a3
treeab9dff2a40f8e5f404bf6c02f3d3d744e2b3d7ed
parentcf2deaa7f40bd7333b1ca455bd611a56046a9d92
registration: Simplify extracting path based globals

The code for ParserTestFiles and ServiceWiringFiles was identical, so
unify it into one function. For most extensions, this should save two
unnecessary function calls as a bonus.

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