Upgraded to Symfony 2.2
This commit is contained in:
@@ -15,8 +15,8 @@ use Symfony\Component\Console\Input\ArgvInput;
|
||||
|
||||
$input = new ArgvInput();
|
||||
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
|
||||
$debug = !$input->hasParameterOption(array('--no-debug', ''));
|
||||
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
|
||||
|
||||
$kernel = new AppKernel($env, $debug);
|
||||
$application = new Application($kernel);
|
||||
$application->run();
|
||||
$application->run($input);
|
||||
|
Reference in New Issue
Block a user