Daniel@0
|
1 #!/usr/bin/env php
|
Daniel@0
|
2 <?php
|
Daniel@0
|
3
|
Daniel@0
|
4 // if you don't want to setup permissions the proper way, just uncomment the following PHP line
|
Daniel@0
|
5 // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
|
Daniel@0
|
6 //umask(0000);
|
Daniel@0
|
7
|
Daniel@0
|
8 set_time_limit(0);
|
Daniel@0
|
9
|
Daniel@0
|
10 require_once __DIR__.'/bootstrap.php.cache';
|
Daniel@0
|
11 require_once __DIR__.'/AppKernel.php';
|
Daniel@0
|
12
|
Daniel@0
|
13 use Symfony\Bundle\FrameworkBundle\Console\Application;
|
Daniel@0
|
14 use Symfony\Component\Console\Input\ArgvInput;
|
Daniel@0
|
15 use Symfony\Component\Debug\Debug;
|
Daniel@0
|
16
|
Daniel@0
|
17 $input = new ArgvInput();
|
Daniel@0
|
18 $env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
|
Daniel@0
|
19 $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
|
Daniel@0
|
20
|
Daniel@0
|
21 if ($debug) {
|
Daniel@0
|
22 Debug::enable();
|
Daniel@0
|
23 }
|
Daniel@0
|
24
|
Daniel@0
|
25 $kernel = new AppKernel($env, $debug);
|
Daniel@0
|
26 $application = new Application($kernel);
|
Daniel@0
|
27 $application->run($input);
|