Upgraded to Symfony 2.2

This commit is contained in:
2013-03-02 23:08:14 +01:00
parent 3ea866ee42
commit 6e06b762fe
42 changed files with 2049 additions and 2199 deletions

View File

@@ -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);