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