From 2603c477ed04c7c72a8b473824c460b13693b9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Thu, 26 Oct 2023 23:53:42 +0200 Subject: [PATCH] feat: set APP_RUNTIME_MODE for frankenphp-symfony --- src/frankenphp-symfony/src/Runner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frankenphp-symfony/src/Runner.php b/src/frankenphp-symfony/src/Runner.php index 46c8378e..fdb10e88 100644 --- a/src/frankenphp-symfony/src/Runner.php +++ b/src/frankenphp-symfony/src/Runner.php @@ -26,6 +26,8 @@ public function __construct(HttpKernelInterface $kernel) public function run(): int { $server = array_filter($_SERVER, static fn (string $key) => !str_starts_with($key, 'HTTP_'), ARRAY_FILTER_USE_KEY); + $server['APP_RUNTIME_MODE'] = 'web=1&worker=1'; + do { $ret = \frankenphp_handle_request(function () use ($server, &$sfRequest, &$sfResponse): void { // Merge the environment variables coming from DotEnv with the ones tight to the current request