Skip to content

Mark deprecated twig functions #7770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented Jan 31, 2025

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Fixed tickets -
Related issues/PRs #7769
License MIT
Documentation PR -

What's in this PR?

Marking twig functions as deprecated.

Why?

We want to let the user know what functions are going to be removed in the next version.

new TwigFilter(
'sulu_util_domain_info',
[$this, 'extract'],
['deprecation_info' => new DeprecatedCallableInfo(package: 'sulu/sulu', version: 2.3)],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not supported by our range of supported twig versions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then just deprecated => true?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if that works for all our supported twig versions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that behaviour works in the old versions and (deprecated) in the new versions.

@mamazu mamazu changed the title Marking deprecated twig functions Mark deprecated twig functions Feb 5, 2025
@mamazu mamazu force-pushed the marking_twig_functions_as_deprecated branch 3 times, most recently from 5c80ab1 to f09ac1b Compare February 5, 2025 16:45
@mamazu mamazu force-pushed the marking_twig_functions_as_deprecated branch from f09ac1b to ba640f8 Compare February 5, 2025 16:46
@mamazu mamazu added Technical Debt Impacts code quality, no or just small impact on end developers and users DX Affecting the end developer labels Feb 5, 2025
@alexander-schranz alexander-schranz merged commit 32a1adb into sulu:2.6 Mar 10, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer Technical Debt Impacts code quality, no or just small impact on end developers and users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants