console 867 B

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