diff --git a/bin/console b/bin/console index 180ea019..8552c731 100755 --- a/bin/console +++ b/bin/console @@ -4,7 +4,6 @@ use App\Kernel; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Component\Console\Input\ArgvInput; -use Symfony\Component\Debug\Debug; if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) { echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.\PHP_SAPI.' SAPI'.\PHP_EOL; @@ -28,13 +27,6 @@ if ($input->hasParameterOption('--no-debug', true)) { require dirname(__DIR__).'/config/bootstrap.php'; -if ($_SERVER['APP_DEBUG']) { - umask(0000); - if (class_exists(Debug::class)) { - Debug::enable(); - } -} - $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); $application = new Application($kernel); $application->run($input); diff --git a/config/bootstrap.php b/config/bootstrap.php index 2f663f16..ead91439 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -1,6 +1,7 @@ handle($request); $response->send();