implement command process

This commit is contained in:
Manuel Raynaud
2013-06-03 13:12:34 +02:00
parent c4d8aef962
commit af086a55da
6 changed files with 160 additions and 1 deletions

18
Thelia Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
set_time_limit(0);
require __DIR__ . '/core/bootstrap.php';
use Thelia\Core\Thelia;
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';
$thelia = new Thelia($env, $debug);
$application = new Application($thelia);
$application->run($input);