Skip to content

Commit

Permalink
Check for existence of vendor directory for better error message (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Mar 22, 2024
1 parent 88999ac commit 9fd92da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions symfony/console/5.3/bin/console
Expand Up @@ -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".');
}
Expand Down

0 comments on commit 9fd92da

Please sign in to comment.