Restore vendor contents even if composer is not available (#8223)

* Restore vendor contents even if composer is not available
Leave the code in both places for safety.

* Instruct users to use the wrapper instead of straight up composer...
This commit is contained in:
Tony Murray
2018-02-07 20:45:18 -06:00
committed by GitHub
parent 547451974d
commit f43e23e15a
3 changed files with 9 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ require_once $install_dir . '/includes/common.php';
# composer autoload
if (!is_file($install_dir . '/vendor/autoload.php')) {
c_echo("%RError: Missing dependencies%n, run: %Bcomposer install --no-dev%n\n\n");
c_echo("%RError: Missing dependencies%n, run: %B./scripts/composer_wrapper.php install --no-dev%n\n\n");
}
require $install_dir . '/vendor/autoload.php';