registration: Support config setings that are relative paths
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 22 Jul 2016 22:08:21 +0000 (15:08 -0700)
committerReedy <reedy@wikimedia.org>
Sun, 24 Jul 2016 14:49:57 +0000 (14:49 +0000)
commit9ffc40235b926e9280bae432908214c9cae045f3
tree45d8b7d0ac163258adadcde295c35b2cde72405c
parent6e71511047de1f6ed8de40c9b2cb1a860ab8a716
registration: Support config setings that are relative paths

Add support for configuration settings that are relative paths to the
extension directory. The most common use-case for this is where the
extension ships a generic default file, but sysadmins or packagers may
want to override it. Setting `"path": true` on the config definition
will make the value be interpreted as a relative path.

And add tests!

Bug: T100956
Change-Id: Ia87ced25b35be7a314ee2937e0ccc63f9acc5bb5
docs/extension.schema.json
includes/registration/ExtensionProcessor.php
tests/phpunit/includes/registration/ExtensionProcessorTest.php