2023-01-21 20:47:25 +00:00
|
|
|
#!/usr/bin/env php
|
2023-01-19 17:25:51 +00:00
|
|
|
<?php
|
|
|
|
|
2023-04-23 23:24:08 +00:00
|
|
|
use App\Kernel;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
2023-03-13 01:19:12 +00:00
|
|
|
|
2023-04-23 23:24:08 +00:00
|
|
|
$_SERVER['APP_SCRIPT_FILENAME'] = __FILE__;
|
2023-03-13 01:19:12 +00:00
|
|
|
|
2023-04-23 23:24:08 +00:00
|
|
|
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
|
|
|
|
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
|
2023-04-21 21:34:01 +00:00
|
|
|
}
|
|
|
|
|
2023-04-23 23:24:08 +00:00
|
|
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
2023-04-21 21:34:01 +00:00
|
|
|
|
2023-04-23 23:24:08 +00:00
|
|
|
return static function (array $context) {
|
|
|
|
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
2023-04-21 21:34:01 +00:00
|
|
|
|
2023-04-23 23:24:08 +00:00
|
|
|
return new Application($kernel);
|
|
|
|
};
|