From f5510d05bffafef0170aa2915a3ce9b177c27f82 Mon Sep 17 00:00:00 2001 From: Luca Rath-Heel Date: Tue, 23 Mar 2021 16:11:18 +0100 Subject: [PATCH 1/4] Add flex recipe for SuluRedirectBundle --- .../2.0/config/packages/sulu_redirect.yaml | 14 ++++++++++++++ .../2.0/config/routes/sulu_redirect_admin.yaml | 8 ++++++++ sulu/redirect-bundle/2.0/manifest.json | 8 ++++++++ sulu/redirect-bundle/2.0/post-install.txt | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml create mode 100644 sulu/redirect-bundle/2.0/config/routes/sulu_redirect_admin.yaml create mode 100644 sulu/redirect-bundle/2.0/manifest.json create mode 100644 sulu/redirect-bundle/2.0/post-install.txt diff --git a/sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml b/sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml new file mode 100644 index 00000000..ccdd91ce --- /dev/null +++ b/sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml @@ -0,0 +1,14 @@ +sulu_redirect: + # When enabled, this feature automatically creates redirects with http status code 410 when a document with route or a route entity is removed. + # gone_on_remove: + # enabled: true + + # You can configure the directory where the uploaded csv files should be stored + # imports: + # path: '%kernel.project_dir%/var/uploads/redirects' + + # Configuring the objects for `redirect_route` allows setting a custom entity or repository class + # objects: + # redirect_route: + # model: Sulu\Bundle\RedirectBundle\Entity\RedirectRoute + # repository: Sulu\Bundle\RedirectBundle\Entity\RedirectRouteRepository diff --git a/sulu/redirect-bundle/2.0/config/routes/sulu_redirect_admin.yaml b/sulu/redirect-bundle/2.0/config/routes/sulu_redirect_admin.yaml new file mode 100644 index 00000000..8e0f542f --- /dev/null +++ b/sulu/redirect-bundle/2.0/config/routes/sulu_redirect_admin.yaml @@ -0,0 +1,8 @@ +sulu_redirect_api: + type: rest + resource: "@SuluRedirectBundle/Resources/config/routing_api.yml" + prefix: /admin/api + +sulu_redirect: + resource: "@SuluRedirectBundle/Resources/config/routing.yml" + prefix: /admin/redirects diff --git a/sulu/redirect-bundle/2.0/manifest.json b/sulu/redirect-bundle/2.0/manifest.json new file mode 100644 index 00000000..cce2d060 --- /dev/null +++ b/sulu/redirect-bundle/2.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Sulu\\Bundle\\RedirectBundle\\SuluRedirectBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/sulu/redirect-bundle/2.0/post-install.txt b/sulu/redirect-bundle/2.0/post-install.txt new file mode 100644 index 00000000..3c35a35f --- /dev/null +++ b/sulu/redirect-bundle/2.0/post-install.txt @@ -0,0 +1,10 @@ + + What's next? + + + * The SuluRedirectBundle 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 SuluRedirectBundle. + + * Read the documentation at https://github.com/sulu/SuluRedirectBundle/blob/master/Resources/doc/installation.md From b6fd397f0fe77c3cc896935b0d87f451ad40b4fa Mon Sep 17 00:00:00 2001 From: Luca Rath-Heel Date: Tue, 23 Mar 2021 16:12:45 +0100 Subject: [PATCH 2/4] Fix symfony-flex-server review --- .../2.0/config/packages/sulu_redirect.yaml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml diff --git a/sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml b/sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml deleted file mode 100644 index ccdd91ce..00000000 --- a/sulu/redirect-bundle/2.0/config/packages/sulu_redirect.yaml +++ /dev/null @@ -1,14 +0,0 @@ -sulu_redirect: - # When enabled, this feature automatically creates redirects with http status code 410 when a document with route or a route entity is removed. - # gone_on_remove: - # enabled: true - - # You can configure the directory where the uploaded csv files should be stored - # imports: - # path: '%kernel.project_dir%/var/uploads/redirects' - - # Configuring the objects for `redirect_route` allows setting a custom entity or repository class - # objects: - # redirect_route: - # model: Sulu\Bundle\RedirectBundle\Entity\RedirectRoute - # repository: Sulu\Bundle\RedirectBundle\Entity\RedirectRouteRepository From f27347726ff5ba580379dd82a58639f078e769ae Mon Sep 17 00:00:00 2001 From: Luca Rath-Heel Date: Tue, 23 Mar 2021 16:23:27 +0100 Subject: [PATCH 3/4] Fix links to docs --- sulu/article-bundle/2.0/post-install.txt | 2 +- sulu/form-bundle/2.0/post-install.txt | 2 +- sulu/headless-bundle/0.1/post-install.txt | 2 +- sulu/redirect-bundle/2.0/post-install.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sulu/article-bundle/2.0/post-install.txt b/sulu/article-bundle/2.0/post-install.txt index bfe4e617..f4166690 100644 --- a/sulu/article-bundle/2.0/post-install.txt +++ b/sulu/article-bundle/2.0/post-install.txt @@ -8,4 +8,4 @@ 3. Create the elasticsearch indices by running php bin/console ongr:es:index:create and php bin/console ongr:es:index:create --manager live. 4. Make sure your user has all the necessary permissions for the SuluArticleBundle. - * Read the documentation at https://github.com/sulu/SuluArticleBundle/blob/master/Resources/doc/README.md + * Read the documentation at https://github.com/sulu/SuluArticleBundle/blob/2.x/Resources/doc/README.md diff --git a/sulu/form-bundle/2.0/post-install.txt b/sulu/form-bundle/2.0/post-install.txt index 1209702a..c07535ed 100644 --- a/sulu/form-bundle/2.0/post-install.txt +++ b/sulu/form-bundle/2.0/post-install.txt @@ -7,4 +7,4 @@ 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/master/Resources/doc/index.md + * Read the documentation at https://github.com/sulu/SuluFormBundle/blob/2.x/Resources/doc/index.md diff --git a/sulu/headless-bundle/0.1/post-install.txt b/sulu/headless-bundle/0.1/post-install.txt index 5f00756d..d690e48b 100644 --- a/sulu/headless-bundle/0.1/post-install.txt +++ b/sulu/headless-bundle/0.1/post-install.txt @@ -4,4 +4,4 @@ * The SuluHeadlessBundle is almost ready: Change the controller of your templates to Sulu\Bundle\HeadlessBundle\Controller\HeadlessWebsiteController::indexAction. - Read the documentation at https://github.com/sulu/SuluHeadlessBundle/blob/master/README.md to learn how. + Read the documentation at https://github.com/sulu/SuluHeadlessBundle/blob/0.x/README.md to learn how. diff --git a/sulu/redirect-bundle/2.0/post-install.txt b/sulu/redirect-bundle/2.0/post-install.txt index 3c35a35f..da36454c 100644 --- a/sulu/redirect-bundle/2.0/post-install.txt +++ b/sulu/redirect-bundle/2.0/post-install.txt @@ -7,4 +7,4 @@ 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 SuluRedirectBundle. - * Read the documentation at https://github.com/sulu/SuluRedirectBundle/blob/master/Resources/doc/installation.md + * Read the documentation at https://github.com/sulu/SuluRedirectBundle/blob/2.x/Resources/doc/installation.md From fb2b442066fe5aae17a0ad5a67870af3d71de231 Mon Sep 17 00:00:00 2001 From: Luca Rath-Heel Date: Wed, 24 Mar 2021 11:53:44 +0100 Subject: [PATCH 4/4] Update sulu/redirect-bundle/2.0/post-install.txt --- sulu/redirect-bundle/2.0/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sulu/redirect-bundle/2.0/post-install.txt b/sulu/redirect-bundle/2.0/post-install.txt index da36454c..1eba6e7a 100644 --- a/sulu/redirect-bundle/2.0/post-install.txt +++ b/sulu/redirect-bundle/2.0/post-install.txt @@ -7,4 +7,4 @@ 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 SuluRedirectBundle. - * Read the documentation at https://github.com/sulu/SuluRedirectBundle/blob/2.x/Resources/doc/installation.md + * Read the documentation at https://github.com/sulu/SuluRedirectBundle/blob/2.x/Resources/doc/README.md