Configure l'environnement de développement complet avec Docker Compose, structure DDD 4 Bounded Contexts, et pipeline CI/CD GitHub Actions. Corrections compatibilité CI: - Symfony 8 nécessite monolog-bundle ^4.0 (la v3.x ne supporte que jusqu'à Symfony 7) - ESLint v9 nécessite flat config (eslint.config.js) - le format .eslintrc.cjs est obsolète
20 lines
542 B
PHP
Executable File
20 lines
542 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Kernel;
|
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
|
|
|
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 static function (array $context): Application {
|
|
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
|
|
|
return new Application($kernel);
|
|
};
|