console 492 B

1234567891011121314151617
  1. #!/usr/bin/env php
  2. <?php
  3. use App\Kernel;
  4. use Symfony\Bundle\FrameworkBundle\Console\Application;
  5. if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
  6. throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
  7. }
  8. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  9. return function (array $context) {
  10. $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  11. return new Application($kernel);
  12. };