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