8000 [Runtime] Automatically use FrankenPHP runner when its worker mode is detected by alexandre-daubois · Pull Request #60503 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@alexandre-daubois
8000
Copy link
Member
@alexandre-daubois alexandre-daubois commented May 21, 2025
Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

Currently, to use FrankenPHP worker mode, you have to install the runtime/frankenphp-symfony package and set the APP_RUNTIME env var to the correct FQCN.

@dunglas and I would like to move the runtime and the runner classes to the Symfony core now that The PHP Foundation officially supports FrakenPHP.

This PR adds FrankenPHP worker mode detection and registers the correct runner to use it. This specific runner is only used when using the worker mode. When using FrankenPHP in classic mode, HttpKernelRunner is still used.

The DX would be greatly improved, given that it works out of the box with this PR.

Classes and tests are coming from this repo with a few tweaks to stick to Symfony CS.

@carsonbot carsonbot added this to the 7.3 milestone May 21, 2025
@alexandre-daubois alexandre-daubois added the DX DX = Developer eXperience (anything that improves the experience of using Symfony) label May 21, 2025
8000
@alexandre-daubois alexandre-daubois changed the title [Runtime] Automatically enable FrankenPHP runtime when its worker mode is detected [Runtime] Automatically use FrankenPHP runner when its worker mode is detected May 21, 2025
@alexandre-daubois alexandre-daubois force-pushed the frankenphp-runner branch 2 times, most recently from 5eac909 to 5ce19ae Compare May 23, 2025 07:57
@alexandre-daubois
Copy link
Member Author

I'm having a look at the followup PR.

Status: Needs Review

@fabpot
Copy link
Member
fabpot commented Jun 20, 2025

Thank you @alexandre-daubois.

@fabpot fabpot merged commit 477311f into symfony:7.4 Jun 20, 2025
9 of 11 checks passed
This was referenced Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DX DX = Developer eXperience (anything that improves the experience of using Symfony) Feature Runtime Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

0