Skip to content

Commit 20f58fc

Browse files
committed
Updated symfony cli recipe
This adds an error message if no composer dependencies are installed
1 parent e6b78dd commit 20f58fc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

bin/console

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
use App\Kernel;
55
use Symfony\Bundle\FrameworkBundle\Console\Application;
66

7+
if (!is_dir(dirname(__DIR__).'/vendor')) {
8+
throw new LogicException('Dependencies are missing. Try running "composer install".');
9+
}
10+
711
//Increase xdebug.max_nesting_level to 1000 if required (see issue #411)
812
//Check if xdebug extension is active, and xdebug.max_nesting_level is set to 256 or lower
913
if (extension_loaded('xdebug') && ((int) ini_get('xdebug.max_nesting_level')) <= 256) {

symfony.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,15 @@
408408
"version": "v4.2.3"
409409
},
410410
"symfony/console": {
411-
"version": "5.3",
411+
"version": "6.4",
412412
"recipe": {
413413
"repo": "github.com/symfony/recipes",
414-
"branch": "master",
414+
"branch": "main",
415415
"version": "5.3",
416-
"ref": "da0c8be8157600ad34f10ff0c9cc91232522e047"
416+
"ref": "1781ff40d8a17d87cf53f8d4cf0c8346ed2bb461"
417417
},
418418
"files": [
419-
"./bin/console"
419+
"bin/console"
420420
]
421421
},
422422
"symfony/css-selector": {

0 commit comments

Comments
 (0)