Files
basango/projects/backend/bin/console
T
2025-10-05 14:42:25 +02:00

19 lines
539 B
PHP
Executable File

#!/usr/bin/env php
<?php
use Symfony\Bundle\FrameworkBundle\Console\Application;
use App\SharedKernel\Infrastructure\Framework\Symfony\Kernel;
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
return new Application($kernel);
};