Check for existence of vendor directory for better error message (#1301)

This commit is contained in:
Alexander Schranz
2024-03-22 11:32:04 +01:00
committed by GitHub
parent 88999ac5da
commit 9fd92da984
+4
View File
@@ -4,6 +4,10 @@
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
if (!is_dir(dirname(__DIR__).'/vendor')) {
throw new LogicException('Dependencies are missing. Try running "composer install".');
}
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}