[sulu/formbundle] Adding support for version 3#1941
Merged
symfony-recipes-bot merged 1 commit intosymfony:mainfrom Feb 10, 2026
Merged
[sulu/formbundle] Adding support for version 3#1941symfony-recipes-bot merged 1 commit intosymfony:mainfrom
symfony-recipes-bot merged 1 commit intosymfony:mainfrom
Conversation
|
Thanks for the PR 😍 How to test these changes in your application
Diff between recipe versionsIn order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. sulu/form-bundle2.0 vs 2.2diff --git a/sulu/form-bundle/2.0/config/packages/sulu_form.yaml b/sulu/form-bundle/2.2/config/packages/sulu_form.yaml
index 345b99de..fd741d41 100644
--- a/sulu/form-bundle/2.0/config/packages/sulu_form.yaml
+++ b/sulu/form-bundle/2.2/config/packages/sulu_form.yaml
@@ -3,6 +3,8 @@ sulu_form:
from: "%env(SULU_ADMIN_EMAIL)%"
to: "%env(SULU_ADMIN_EMAIL)%"
sender: "%env(SULU_ADMIN_EMAIL)%"
+ media:
+ protected: true
framework:
esi: true2.2 vs 2.4diff --git a/sulu/form-bundle/2.2/config/packages/sulu_form.yaml b/sulu/form-bundle/2.4/config/packages/sulu_form.yaml
index fd741d41..1f5cde76 100644
--- a/sulu/form-bundle/2.2/config/packages/sulu_form.yaml
+++ b/sulu/form-bundle/2.4/config/packages/sulu_form.yaml
@@ -1,11 +1,8 @@
sulu_form:
+# csrf_protection: true # requires additional changes see: https://github.com/sulu/SuluFormBundle/blob/2.4.0/Resources/doc/csrf.md
mail:
from: "%env(SULU_ADMIN_EMAIL)%"
to: "%env(SULU_ADMIN_EMAIL)%"
sender: "%env(SULU_ADMIN_EMAIL)%"
media:
protected: true
-
-framework:
- esi: true
- fragments: true
diff --git a/sulu/form-bundle/2.2/post-install.txt b/sulu/form-bundle/2.4/post-install.txt
index a46c13c7..051f4d23 100644
--- a/sulu/form-bundle/2.2/post-install.txt
+++ b/sulu/form-bundle/2.4/post-install.txt
@@ -2,5 +2,6 @@
1. Print the sql statements required to update your database schema by running php bin/console doctrine:schema:update --dump-sql.
2. If the statements look fine to you, run the same command using --force to execute them.
3. Make sure your user has all the necessary permissions for the SuluFormBundle.
+ 4. Use bin/console sulu:form:generate-form to create a dummy form.
* Read the documentation at https://github.com/sulu/SuluFormBundle/blob/2.x/Resources/doc/index.md2.4 vs 3.0diff --git a/sulu/form-bundle/2.4/config/packages/sulu_form.yaml b/sulu/form-bundle/3.0/config/packages/sulu_form.yaml
index 1f5cde76..8f606ed8 100644
--- a/sulu/form-bundle/2.4/config/packages/sulu_form.yaml
+++ b/sulu/form-bundle/3.0/config/packages/sulu_form.yaml
@@ -1,5 +1,5 @@
sulu_form:
-# csrf_protection: true # requires additional changes see: https://github.com/sulu/SuluFormBundle/blob/2.4.0/Resources/doc/csrf.md
+# csrf_protection: true # requires additional changes see: https://github.com/sulu/SuluFormBundle/blob/3.0/Resources/doc/csrf.md
mail:
from: "%env(SULU_ADMIN_EMAIL)%"
to: "%env(SULU_ADMIN_EMAIL)%"
diff --git a/sulu/form-bundle/2.4/config/routes/sulu_form_admin.yaml b/sulu/form-bundle/3.0/config/routes/sulu_form_admin.yaml
index bac30391..3df594dc 100644
--- a/sulu/form-bundle/2.4/config/routes/sulu_form_admin.yaml
+++ b/sulu/form-bundle/3.0/config/routes/sulu_form_admin.yaml
@@ -1,4 +1,3 @@
sulu_form_api:
- resource: "@SuluFormBundle/Resources/config/routing_api.yml"
- type: rest
+ resource: "@SuluFormBundle/Resources/config/routing_api.yaml"
prefix: /admin/api
diff --git a/sulu/form-bundle/2.4/post-install.txt b/sulu/form-bundle/3.0/post-install.txt
index 051f4d23..10833fd0 100644
--- a/sulu/form-bundle/2.4/post-install.txt
+++ b/sulu/form-bundle/3.0/post-install.txt
@@ -4,4 +4,4 @@
3. Make sure your user has all the necessary permissions for the SuluFormBundle.
4. Use bin/console sulu:form:generate-form to create a dummy form.
- * Read the documentation at https://github.com/sulu/SuluFormBundle/blob/2.x/Resources/doc/index.md
+ * Read the documentation at https://github.com/sulu/SuluFormBundle/blob/3.0/Resources/doc/index.md |
alexander-schranz
approved these changes
Feb 10, 2026
diimpp
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding build recipie for the Sulu 3 version of the FormBundle.
/cc @alexander-schranz