2016-10-20 22:10:41 +02:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
2018-01-12 20:39:07 +01:00
|
|
|
use App\Kernel;
|
2020-12-10 16:25:14 +01:00
|
|
|
use App\ConsoleApplication;
|
2016-10-20 22:10:41 +02:00
|
|
|
|
2020-06-11 01:26:57 +02:00
|
|
|
set_time_limit(0);
|
|
|
|
|
2022-12-31 21:19:55 +01:00
|
|
|
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
|
|
|
|
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
|
|
|
|
}
|
2016-10-20 22:10:41 +02:00
|
|
|
|
2022-12-31 21:19:55 +01:00
|
|
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
2018-01-12 20:39:07 +01:00
|
|
|
|
2022-12-31 21:19:55 +01:00
|
|
|
return function (array $context) {
|
|
|
|
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
2016-10-20 22:10:41 +02:00
|
|
|
|
2022-12-31 21:19:55 +01:00
|
|
|
return new ConsoleApplication($kernel);
|
|
|
|
};
|