registration: Allow loading composer's autoloader if it exists
authorvictorbarbu <victorbarbu08@gmail.com>
Sun, 27 Dec 2015 09:03:41 +0000 (11:03 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Tue, 29 Dec 2015 23:20:17 +0000 (23:20 +0000)
commit7489cdfc05c87c4ab6c0916c4a5293c6b8b7f3a1
treed92d0295bf3d0fd4d3a5d3a42569ed3d5c1d136d
parente7fa880a9d14f390267c675bab91518215ff1c1f
registration: Allow loading composer's autoloader if it exists

Extensions that have composer dependencies can set
 "load_composer_autoloader": true
to load "$dir/vendor/autoload.php" if it exists.

While it is recommended to use composer-merge-plugin to manage
composer dependencies for extensions, using a local autoloader
can be easier for development and is used by ExtensionDistributor.

Bug: T119766
Change-Id: Ib031bef17c8a7d708a5c7878e74967d19217bbc8
docs/extension.schema.json
includes/registration/ExtensionProcessor.php
includes/registration/ExtensionRegistry.php
includes/registration/Processor.php
tests/phpunit/includes/registration/ExtensionRegistryTest.php