Skip to content

Commit d7539a9

Browse files
authored
feat: set APP_RUNTIME_MODE for frankenphp-symfony (#143)
Follows symfony/symfony#52079.
1 parent 2a952fe commit d7539a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)