X-Git-Url: https://git.rapsys.eu/blog/blobdiff_plain/8c12177320fc2794b20bc569f21a1308a8bbe664..4e640f384a1673e28f38aa23420df322e5f39eec:/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".'); }