caisse-bliss/bin/console

18 lines
492 B
Plaintext
Raw Normal View History

2018-03-13 15:05:52 +01:00
#!/usr/bin/env php
<?php
2023-06-19 12:13:30 +02:00
use App\Kernel;
2018-03-13 15:05:52 +01:00
use Symfony\Bundle\FrameworkBundle\Console\Application;
2018-04-04 16:25:25 +02:00
2023-06-19 12:13:30 +02:00
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}
2018-03-13 15:05:52 +01:00
2023-06-19 12:13:30 +02:00
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
2018-03-13 15:05:52 +01:00
2023-06-19 12:13:30 +02:00
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
2018-03-13 15:05:52 +01:00
2023-06-19 12:13:30 +02:00
return new Application($kernel);
};