console 901 B

1234567891011121314151617181920212223242526272829
  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. ini_set('date.timezone', 'UTC');
  7. set_time_limit(0);
  8. require_once __DIR__.'/bootstrap.php.cache';
  9. require_once __DIR__.'/AppKernel.php';
  10. use Symfony\Bundle\FrameworkBundle\Console\Application;
  11. use Symfony\Component\Console\Input\ArgvInput;
  12. use Symfony\Component\Debug\Debug;
  13. $input = new ArgvInput();
  14. $env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
  15. $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
  16. if ($debug) {
  17. Debug::enable();
  18. }
  19. $kernel = new AppKernel($env, $debug);
  20. $application = new Application($kernel);
  21. $application->run($input);