#!/usr/bin/env php getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; if ($debug) { Debug::enable(); } // must be placed after setting $env, because it's used in bootstrapping the // kernel $kernel = new Kernel($env, $debug); $application = new Application($kernel); $application->run($input);