]> Raphaƫl G. Git Repositories - blog/blob - bin/console
Import test env file
[blog] / bin / console
1 #!/usr/bin/env php
2 <?php
3
4 use App\Kernel;
5 use Symfony\Bundle\FrameworkBundle\Console\Application;
6
7 if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
8 throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
9 }
10
11 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
12
13 return function (array $context) {
14 $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
15
16 return new Application($kernel);
17 };