X-Git-Url: https://git.rapsys.eu/blog/blobdiff_plain/cd0936c13f987b40f6456d67c58119ca246a4bf7..46df344a62b48ae433c7e337d78a2da0a837146e:/bin/console?ds=sidebyside diff --git a/bin/console b/bin/console index c933dc5..d8d530e 100755 --- a/bin/console +++ b/bin/console @@ -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".'); }