mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-09 06:00:31 +08:00
add detection for vendor existence
This commit is contained in:
parent
79f1608780
commit
10f86d4253
@ -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?");
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user