From e3f73a0f47dfeb368cb4e8a5292e125ca7e6610a Mon Sep 17 00:00:00 2001 From: SimonRethore Date: Fri, 25 Oct 2024 15:37:07 +0200 Subject: [PATCH] 1169425252 - RedirectionHistory recipe --- .../3.7/config/packages/faros_seo.yaml | 20 ++++++++++++++ faros-ng/seo-bundle/3.7/manifest.json | 9 +++++++ faros-ng/seo-bundle/3.7/post-install.txt | 7 +++++ .../3.7/src/Entity/Seo/Redirection.php | 20 ++++++++++++++ .../3.7/src/Entity/Seo/RedirectionHistory.php | 20 ++++++++++++++ .../seo-bundle/3.7/src/Entity/Seo/Rule.php | 27 +++++++++++++++++++ .../3.7/src/Entity/Seo/RuleException.php | 25 +++++++++++++++++ 7 files changed, 128 insertions(+) create mode 100644 faros-ng/seo-bundle/3.7/config/packages/faros_seo.yaml create mode 100644 faros-ng/seo-bundle/3.7/manifest.json create mode 100644 faros-ng/seo-bundle/3.7/post-install.txt create mode 100644 faros-ng/seo-bundle/3.7/src/Entity/Seo/Redirection.php create mode 100644 faros-ng/seo-bundle/3.7/src/Entity/Seo/RedirectionHistory.php create mode 100644 faros-ng/seo-bundle/3.7/src/Entity/Seo/Rule.php create mode 100644 faros-ng/seo-bundle/3.7/src/Entity/Seo/RuleException.php diff --git a/faros-ng/seo-bundle/3.7/config/packages/faros_seo.yaml b/faros-ng/seo-bundle/3.7/config/packages/faros_seo.yaml new file mode 100644 index 0000000..0843135 --- /dev/null +++ b/faros-ng/seo-bundle/3.7/config/packages/faros_seo.yaml @@ -0,0 +1,20 @@ +faros_seo: + redirection: + enable: true + exclude_patterns: + - ^/admin + - ^/api + - ^/assets + - ^/bundles + - ^/build + - ^/translations + - ^/js + - ^/image + - ^/media + - ^/_profiler + rewrite_redirect: false + redirection_class: App\Entity\Seo\Redirection + redirection_history_class: App\Entity\Seo\RedirectionHistory + redirection_history_save_path: '%kernel.project_dir%/var/history' + rule_class: App\Entity\Seo\Rule + rule_exception_class: App\Entity\Seo\RuleException diff --git a/faros-ng/seo-bundle/3.7/manifest.json b/faros-ng/seo-bundle/3.7/manifest.json new file mode 100644 index 0000000..09492d3 --- /dev/null +++ b/faros-ng/seo-bundle/3.7/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "Faros\\Bundle\\SeoBundle\\FarosSeoBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + } +} \ No newline at end of file diff --git a/faros-ng/seo-bundle/3.7/post-install.txt b/faros-ng/seo-bundle/3.7/post-install.txt new file mode 100644 index 0000000..27ac9cc --- /dev/null +++ b/faros-ng/seo-bundle/3.7/post-install.txt @@ -0,0 +1,7 @@ + + What's next? + + + * Update your database schema: + 1. php bin/console doctrine:migrations:diff + 2. php bin/console doctrine:migrations:migrate \ No newline at end of file diff --git a/faros-ng/seo-bundle/3.7/src/Entity/Seo/Redirection.php b/faros-ng/seo-bundle/3.7/src/Entity/Seo/Redirection.php new file mode 100644 index 0000000..fa88e3e --- /dev/null +++ b/faros-ng/seo-bundle/3.7/src/Entity/Seo/Redirection.php @@ -0,0 +1,20 @@ + + */ + #[ORM\OneToMany(targetEntity: RuleException::class, mappedBy: 'rule')] + protected $exceptions; +} diff --git a/faros-ng/seo-bundle/3.7/src/Entity/Seo/RuleException.php b/faros-ng/seo-bundle/3.7/src/Entity/Seo/RuleException.php new file mode 100644 index 0000000..eb8b545 --- /dev/null +++ b/faros-ng/seo-bundle/3.7/src/Entity/Seo/RuleException.php @@ -0,0 +1,25 @@ +