From 6a3284cb850ee2e1edc14cf7ff503fa4e7cba105 Mon Sep 17 00:00:00 2001 From: Tobias Ingold Date: Wed, 25 Jun 2025 11:26:56 +0200 Subject: [PATCH 1/4] Update existing-project.md Add missing step --- docs/existing-project.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/existing-project.md b/docs/existing-project.md index 188bbab5..735d1e14 100644 --- a/docs/existing-project.md +++ b/docs/existing-project.md @@ -22,6 +22,10 @@ Re-execute the recipes to update the Docker-related files according to the packa rm symfony.lock composer recipes:install --force --verbose +Add frankenphp runtime for Symfony + + composer require runtime/frankenphp-symfony + Double-check the changes, revert the changes that you don't want to keep: git diff From 5699f369fe2b5de33b1811781f59f57d4f723fae Mon Sep 17 00:00:00 2001 From: Tobias Ingold Date: Wed, 25 Jun 2025 13:08:30 +0200 Subject: [PATCH 2/4] Update existing-project.md Swap step order according to @7-zete-7's suggestion Various spelling --- docs/existing-project.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/existing-project.md b/docs/existing-project.md index 735d1e14..d2bf8b51 100644 --- a/docs/existing-project.md +++ b/docs/existing-project.md @@ -17,15 +17,15 @@ Enable the Docker support of Symfony Flex: composer config --json extra.symfony.docker 'true' -Re-execute the recipes to update the Docker-related files according to the packages you use +If you want to use the [worker mode of FrankenPHP](https://github.com/php/frankenphp/blob/main/docs/worker.md), add the FrankenPHP runtime for Symfony: + + composer require runtime/frankenphp-symfony + +Re-execute the recipes to update the Docker-related files according to the packages you use: rm symfony.lock composer recipes:install --force --verbose -Add frankenphp runtime for Symfony - - composer require runtime/frankenphp-symfony - Double-check the changes, revert the changes that you don't want to keep: git diff @@ -41,8 +41,6 @@ Start the project! Browse `https://localhost`, your Docker configuration is ready! -> [!NOTE] -> If you want to use the worker mode of FrankenPHP, make sure you required the `runtime/frankenphp-symfony` package. - > [!NOTE] > The worker mode of FrankenPHP is enabled by default in the Caddyfile. To disabled it, comment the `worker {}` section of this file. +> You may also remove `runtime/frankenphp-symfony` if you never play on using the worker mode. From a80f1195caeed3863b7d91d9797754b997bd78c9 Mon Sep 17 00:00:00 2001 From: Tobias Ingold Date: Wed, 25 Jun 2025 13:19:19 +0200 Subject: [PATCH 3/4] Fix typo --- docs/existing-project.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/existing-project.md b/docs/existing-project.md index d2bf8b51..34179b41 100644 --- a/docs/existing-project.md +++ b/docs/existing-project.md @@ -43,4 +43,4 @@ Browse `https://localhost`, your Docker configuration is ready! > [!NOTE] > The worker mode of FrankenPHP is enabled by default in the Caddyfile. To disabled it, comment the `worker {}` section of this file. -> You may also remove `runtime/frankenphp-symfony` if you never play on using the worker mode. +> You may also remove `runtime/frankenphp-symfony` if you never plan on using the worker mode. From 285f3e3fdb172e7730c723d0ec36685a7bfb4c17 Mon Sep 17 00:00:00 2001 From: Tobias Ingold Date: Wed, 2 Jul 2025 18:55:08 +0200 Subject: [PATCH 4/4] Update docs/existing-project.md Co-authored-by: Maxime Helias --- docs/existing-project.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/existing-project.md b/docs/existing-project.md index 34179b41..7a789359 100644 --- a/docs/existing-project.md +++ b/docs/existing-project.md @@ -21,6 +21,9 @@ If you want to use the [worker mode of FrankenPHP](https://github.com/php/franke composer require runtime/frankenphp-symfony +> [!TIP] +> With Symfony 7.4, the `runtime/frankenphp-symfony` package isn't required anymore, as Symfony Runtime natively supports FrankenPHP worker mode. + Re-execute the recipes to update the Docker-related files according to the packages you use: rm symfony.lock