mirror of
https://github.com/wallabag/wallabag.git
synced 2026-09-28 13:01:53 +02:00
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).
8 lines
190 B
PHP
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']);
|
|
};
|