add detection for vendor existence

This commit is contained in:
printempw 2017-01-14 18:42:53 +08:00
parent 79f1608780
commit 10f86d4253

View File

@ -14,7 +14,11 @@ define('LARAVEL_START', microtime(true));
|
*/
require __DIR__.'/../vendor/autoload.php';
if (file_exists($autoload = __DIR__.'/../vendor/autoload.php')) {
require $autoload;
} else {
exit("No vendor folder found. Have you installed the dependencies with composer?");
}
/*
|--------------------------------------------------------------------------