Files
Yassine Guedidi 9848b2a583 Introduce web/index.php as the Symfony Runtime front controller
Replaces the direct bootstrap pattern with a closure that Symfony
Runtime resolves, enabling future support for alternative runtimes
(FrankenPHP, RoadRunner, etc.) without code changes.

APP_ENV and APP_DEBUG are read from the environment; set them in the
web server configuration for production (APP_ENV=prod APP_DEBUG=0).
2026-03-17 01:53:32 +01:00

8 lines
190 B
PHP

<?php
require_once __DIR__.'/../vendor/autoload_runtime.php';
return function (array $context): AppKernel {
return new AppKernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};