From 4cc1a08a01b16cd0d7ecde16549ec90d87a253a7 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Sat, 19 Feb 2022 12:04:38 +0100 Subject: [PATCH] Add recipe for SuluFormBundle 2.2 (#1287) --- sulu/form-bundle/2.2/config/packages/sulu_form.yaml | 11 +++++++++++ .../2.2/config/routes/sulu_form_admin.yaml | 4 ++++ sulu/form-bundle/2.2/manifest.json | 8 ++++++++ sulu/form-bundle/2.2/post-install.txt | 6 ++++++ 4 files changed, 29 insertions(+) create mode 100644 sulu/form-bundle/2.2/config/packages/sulu_form.yaml create mode 100644 sulu/form-bundle/2.2/config/routes/sulu_form_admin.yaml create mode 100644 sulu/form-bundle/2.2/manifest.json create mode 100644 sulu/form-bundle/2.2/post-install.txt diff --git a/sulu/form-bundle/2.2/config/packages/sulu_form.yaml b/sulu/form-bundle/2.2/config/packages/sulu_form.yaml new file mode 100644 index 00000000..fd741d41 --- /dev/null +++ b/sulu/form-bundle/2.2/config/packages/sulu_form.yaml @@ -0,0 +1,11 @@ +sulu_form: + 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/config/routes/sulu_form_admin.yaml b/sulu/form-bundle/2.2/config/routes/sulu_form_admin.yaml new file mode 100644 index 00000000..bac30391 --- /dev/null +++ b/sulu/form-bundle/2.2/config/routes/sulu_form_admin.yaml @@ -0,0 +1,4 @@ +sulu_form_api: + resource: "@SuluFormBundle/Resources/config/routing_api.yml" + type: rest + prefix: /admin/api diff --git a/sulu/form-bundle/2.2/manifest.json b/sulu/form-bundle/2.2/manifest.json new file mode 100644 index 00000000..ad6597fe --- /dev/null +++ b/sulu/form-bundle/2.2/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Sulu\\Bundle\\FormBundle\\SuluFormBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/sulu/form-bundle/2.2/post-install.txt b/sulu/form-bundle/2.2/post-install.txt new file mode 100644 index 00000000..a46c13c7 --- /dev/null +++ b/sulu/form-bundle/2.2/post-install.txt @@ -0,0 +1,6 @@ + * The SuluFormBundle is almost ready: + 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. + + * Read the documentation at https://github.com/sulu/SuluFormBundle/blob/2.x/Resources/doc/index.md