Skip to content

Commit 3e665c7

Browse files
authored
feat: set APP_RUNTIME_MODE for frankenphp-symfony (#143)
Follows symfony/symfony#52079.
1 parent da7093d commit 3e665c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/frankenphp-symfony/src/Runner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function __construct(private HttpKernelInterface $kernel)
2323
public function run(): int
2424
{
2525
$server = array_filter($_SERVER, static fn (string $key) => !str_starts_with($key, 'HTTP_'), ARRAY_FILTER_USE_KEY);
26+
$server['APP_RUNTIME_MODE'] = 'web=1&worker=1';
27+
2628
do {
2729
$ret = \frankenphp_handle_request(function () use ($server, &$sfRequest, &$sfResponse): void {
2830
// Merge the environment variables coming from DotEnv with the ones tight to the current request

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy