Updated recipes of console + Validator

This commit is contained in:
Jan Böhmer 2020-01-07 19:00:11 +01:00
parent 64cf8097bc
commit 36f2420cf5
6 changed files with 35 additions and 42 deletions

View file

@ -4,7 +4,11 @@
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;
use Symfony\Component\ErrorHandler\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;
}
set_time_limit(0);