Problem
Composer allows the path to the vendor directory to be 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:
- includes/PHPVersionCheck.php
- includes/registration/ExtensionProcessor.php
- includes/Setup.php
- maintenance/findDeprecated.php
- tests/phpunit/autoload.ide.php
- 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?