From a7f01fc8c67c05d58fd95dd7b546d6ff2db6ec94 Mon Sep 17 00:00:00 2001 From: Mathieu De Keyzer Date: Sat, 6 Jan 2024 18:00:08 +0100 Subject: [PATCH] doc: `sequence` deprecated and must be replaced by `emsco_sequence` --- EMS/core-bundle/src/Twig/AppExtension.php | 3 ++- docs/upgrade.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/EMS/core-bundle/src/Twig/AppExtension.php b/EMS/core-bundle/src/Twig/AppExtension.php index 7afd57bab..9d8fe04cd 100644 --- a/EMS/core-bundle/src/Twig/AppExtension.php +++ b/EMS/core-bundle/src/Twig/AppExtension.php @@ -84,7 +84,7 @@ public function getFunctions(): array { return [ new TwigFunction('emsco_cant_be_finalized', $this->cantBeFinalized(...)), - new TwigFunction('sequence', $this->getSequenceNextValue(...)), + new TwigFunction('emsco_sequence', $this->getSequenceNextValue(...)), new TwigFunction('diff_text', $this->diffText(...), ['is_safe' => ['html']]), new TwigFunction('diff', $this->diff(...), ['is_safe' => ['html']]), new TwigFunction('diff_html', $this->diffHtml(...), ['is_safe' => ['html']]), @@ -126,6 +126,7 @@ public function getFunctions(): array new TwigFunction('cant_be_finalized', $this->cantBeFinalized(...), ['deprecated' => true, 'alternative' => 'emsco_cant_be_finalized']), new TwigFunction('get_default_environments', [EnvironmentRuntime::class, 'getDefaultEnvironmentNames'], ['deprecated' => true, 'alternative' => 'emsco_get_default_environment_names']), new TwigFunction('get_content_types', [ContentTypeRuntime::class, 'getContentTypes'], ['deprecated' => true, 'alternative' => 'emsco_get_content_types']), + new TwigFunction('sequence', $this->getSequenceNextValue(...), ['deprecated' => true, 'alternative' => 'emsco_sequence']), ]; } diff --git a/docs/upgrade.md b/docs/upgrade.md index 78252773d..47887c4c4 100644 --- a/docs/upgrade.md +++ b/docs/upgrade.md @@ -55,6 +55,7 @@ E.g.: * `cant_be_finalized` must be replaced by `emsco_cant_be_finalized` * `get_default_environments` must be replaced by `emsco_get_default_environment_names` * `get_content_types` must be replaced by `emsco_get_content_types` +* `sequence` deprecated and must be replaced by `emsco_sequence` ### New dynamic mapping config which change the elasticsearch indexes