complete cache:clear command

This commit is contained in:
Manuel Raynaud
2013-06-03 15:00:07 +02:00
parent af086a55da
commit fa3f8a3bf9
3 changed files with 16 additions and 4 deletions

4
Thelia
View File

@@ -10,8 +10,8 @@ use Thelia\Core\Application;
use Symfony\Component\Console\Input\ArgvInput;
$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
$env = $input->getParameterOption(array('--env', '-e'), getenv('THELIA_ENV') ?: 'dev');
$debug = getenv('THELIA_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
$thelia = new Thelia($env, $debug);
$application = new Application($thelia);