Skip to content

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented Feb 4, 2025

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

What's in this PR?

Removing the deprecated MetaTwigExtension

Why?

Sulu 3.0 cleanup is real.

UPGRADE.md Outdated
@@ -2,6 +2,12 @@

## 3.0.0

### Removing deprecated twig functions
- `sulu_meta_alternate` (use `sulu_seo` instead)
Copy link
Member

@alexander-schranz alexander-schranz Feb 4, 2025

Choose a reason for hiding this comment

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

sulu_seo is deprecated:

@trigger_deprecation(
'sulu/sulu',
'1.x',
'This twig extension is deprecated and should not be used anymore, include the "%s".',
$template
);

Replacement is calling directly the twig file like in the skeleton:

https://github.com/sulu/skeleton/blob/d616fe6b8f8766068a9ae5af84468aa6cd32f5e9/templates/base.html.twig#L9

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I also include the removal of this function in this PR or create a different PR for that?

Copy link
Member

Choose a reason for hiding this comment

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

You can remove it in this PR

@mamazu mamazu force-pushed the twig_stuff branch 2 times, most recently from e70199e to 7d290f9 Compare February 5, 2025 15:36
@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
@mamazu mamazu changed the title Remove MetaTwigExtension Remove MetaTwigExtension and SeoTwigExtension Mar 10, 2025
@mamazu
Copy link
Contributor Author

mamazu commented Mar 13, 2025

Should be ready for merging now.

@alexander-schranz alexander-schranz merged commit fa874f2 into sulu:3.0 Mar 13, 2025
8 of 9 checks passed
@alexander-schranz
Copy link
Member

@mamazu awesome. Thank you 🚀

@mamazu mamazu deleted the twig_stuff branch March 13, 2025 12:06
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