Skip to content
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

Partly fixed deprecations of Twig #2777 #2801

Conversation

aalwash
Copy link

@aalwash aalwash commented Apr 23, 2019

Type

  • Enhancement

Resolves the following issues

Partly fixes #2777

Pull request description

I'm not done with all deprecations, some of them are a bit harder, like
User Deprecated: The "Symfony\Bridge\Twig\Extension\FormExtension" class implements "Twig\Extension\InitRuntimeInterface" that is deprecated since Twig 2.7, to be removed in 3.0.

* @param string $app
*/
public static function addFilters(Twig_Environment $twig, string $app): void
Copy link
Member

Choose a reason for hiding this comment

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

is this change backwards compatible?

Copy link
Author

Choose a reason for hiding this comment

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

It's definitely not backward compatible

But I've checked the usage of TwigFilters, that only happens in the Frontend/Backend Engine
And both are rewritten to pass the new Twig\Environment class

Do extensions call the Frontend/Backend Engine them self?

Copy link
Author

Choose a reason for hiding this comment

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

Btw, I forgot to mention that I've done some random filter tests after the Twig changes and it worked for me so far

@carakas carakas added this to the 6.0.0 milestone May 8, 2019
@carakas carakas changed the base branch from master to restructure-core October 29, 2019 13:27
@carakas carakas changed the base branch from restructure-core to merge-fork-6-prs-in-restructure-core October 29, 2019 15:23
@carakas carakas modified the milestones: 6.0.0, Restructure Core Oct 29, 2019
@carakas carakas added this to In progress in Restructure Core via automation Oct 29, 2019
@carakas carakas merged commit a68a4c8 into forkcms:merge-fork-6-prs-in-restructure-core Oct 30, 2019
Restructure Core automation moved this from In progress to Done Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants