Updated symfony cli recipe

This adds an error message if no composer dependencies are installed
This commit is contained in:
Jan Böhmer 2025-01-03 17:42:49 +01:00
parent e6b78dd213
commit 20f58fc07d
2 changed files with 8 additions and 4 deletions

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".');
}
//Increase xdebug.max_nesting_level to 1000 if required (see issue #411)
//Check if xdebug extension is active, and xdebug.max_nesting_level is set to 256 or lower
if (extension_loaded('xdebug') && ((int) ini_get('xdebug.max_nesting_level')) <= 256) {