2018-06-20 16:35:08 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2022-07-05 20:39:22 +00:00
|
|
|
declare(strict_types=1);
|
2018-06-20 16:35:08 +00:00
|
|
|
|
|
|
|
use App\Kernel;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
2019-07-13 19:44:21 +00:00
|
|
|
|
2022-07-05 20:39:22 +00:00
|
|
|
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
|
|
|
|
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
|
2019-07-13 19:44:21 +00:00
|
|
|
}
|
2018-06-20 16:35:08 +00:00
|
|
|
|
2022-07-05 20:39:22 +00:00
|
|
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
2018-06-20 16:35:08 +00:00
|
|
|
|
2022-07-05 20:39:22 +00:00
|
|
|
return function (array $context) {
|
|
|
|
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
2018-06-20 16:35:08 +00:00
|
|
|
|
2022-07-05 20:39:22 +00:00
|
|
|
return new Application($kernel);
|
|
|
|
};
|