diff --git a/symfony/console/3.3/bin/console b/symfony/console/3.3/bin/console index 5187d027a..a2f94513e 100755 --- a/symfony/console/3.3/bin/console +++ b/symfony/console/3.3/bin/console @@ -3,7 +3,6 @@ use App\Kernel; use Symfony\Bundle\FrameworkBundle\Console\Application; -use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Debug\Debug; use Symfony\Component\Dotenv\Dotenv; @@ -22,9 +21,8 @@ if (!isset($_SERVER['APP_ENV'])) { (new Dotenv())->load(__DIR__.'/../.env'); } -$input = new ArgvInput(); -$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true); -$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true); +$env = $_SERVER['APP_ENV'] ?? 'dev'; +$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)); if ($debug) { umask(0000); @@ -36,4 +34,4 @@ if ($debug) { $kernel = new Kernel($env, $debug); $application = new Application($kernel); -$application->run($input); +$application->run();