4 use Symfony\Bundle\FrameworkBundle\Console\Application
;
5 use Symfony\Component\Console\Input\ArgvInput
;
6 use Symfony\Component\Debug\Debug
;
8 // if you don't want to setup permissions the proper way, just uncomment the following PHP line
9 // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
15 * @var Composer\Autoload\ClassLoader $loader
17 $loader = require __DIR__
.'/autoload.php';
19 $input = new ArgvInput();
20 $env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
21 $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
27 $kernel = new AppKernel($env, $debug);
28 $application = new Application($kernel);
29 $application->run($input);