chill-skeleton-basic/bin/console

18 lines
492 B
Plaintext
Raw Normal View History

2022-07-11 17:27:00 +00:00
#!/usr/bin/env php
<?php
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
2023-09-05 12:17:00 +00:00
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
2022-07-11 17:27:00 +00:00
}
2023-09-05 12:17:00 +00:00
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
2022-07-11 17:27:00 +00:00
2023-09-05 12:17:00 +00:00
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
2022-07-11 17:27:00 +00:00
2023-09-05 12:17:00 +00:00
return new Application($kernel);
};