equal
deleted
inserted
replaced
|
1 #!/usr/bin/env php |
|
2 <?php |
|
3 |
|
4 require_once __DIR__.'/bootstrap.php.cache'; |
|
5 require_once __DIR__.'/AppKernel.php'; |
|
6 |
|
7 use Symfony\Bundle\FrameworkBundle\Console\Application; |
|
8 use Symfony\Component\Console\Input\ArgvInput; |
|
9 |
|
10 $input = new ArgvInput(); |
|
11 $env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); |
|
12 $debug = !$input->hasParameterOption(array('--no-debug', '')); |
|
13 |
|
14 $kernel = new AppKernel($env, $debug); |
|
15 $application = new Application($kernel); |
|
16 $application->run(); |