Skip to content

Commit

Permalink
doc: sequence deprecated and must be replaced by emsco_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Jan 6, 2024
1 parent 0070ad7 commit a7f01fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EMS/core-bundle/src/Twig/AppExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']]),
Expand Down Expand Up @@ -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']),
];
}

Expand Down
1 change: 1 addition & 0 deletions docs/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a7f01fc

Please sign in to comment.