console 495B

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