**Problem**
[[ https://getcomposer.org/ | Composer ]] allows the path to the vendor directory to be [[ https://getcomposer.org/doc/06-config.md#vendor-dir | customized ]]. A common practice (and security precaution) is to put the vendor directory outside of the webroot.
However, there are many places where this path is hardcoded:
- [[ https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/PHPVersionCheck.php;d9c1a80f5a94f64a53b24465839abf44c07d79c1$154 | includes/PHPVersionCheck.php ]]
- [[ https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/registration/ExtensionProcessor.php;d9c1a80f5a94f64a53b24465839abf44c07d79c1$545 | includes/registration/ExtensionProcessor.php ]]
- [[ https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/Setup.php;d9c1a80f5a94f64a53b24465839abf44c07d79c1$59 | includes/Setup.php ]]
- [[ https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/findDeprecated.php;d9c1a80f5a94f64a53b24465839abf44c07d79c1$26 | maintenance/findDeprecated.php ]]
- [[ https://phabricator.wikimedia.org/source/mediawiki/browse/master/tests/phpunit/autoload.ide.php;d9c1a80f5a94f64a53b24465839abf44c07d79c1$68 | tests/phpunit/autoload.ide.php ]]
- [[ https://phabricator.wikimedia.org/source/mediawiki/browse/master/tests/phpunit/includes/registration/ExtensionProcessorTest.php;d9c1a80f5a94f64a53b24465839abf44c07d79c1$700 | tests/phpunit/includes/registration/ExtensionProcessorTest.php
]]
**Solution**
Perhaps a new constant, similar to `MW_CONFIG_FILE` that would allow the customization of the config file?