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

Twig extensions use deprecated features #20133

Closed
garak opened this issue Oct 3, 2016 · 3 comments
Closed

Twig extensions use deprecated features #20133

garak opened this issue Oct 3, 2016 · 3 comments

Comments

@garak
Copy link
Contributor

garak commented Oct 3, 2016

I just updated my vendors on a Symfony 2.8 project, getting Twig 1.26.0
I'm getting the following deprecation notice:

Referencing the "Twig_Extension_Core" extension by its name (defined by getName()) is deprecated since 1.26 and will be removed in Twig 2.0. Use the Fully Qualified Extension Class Name instead.

I tried to remove getName() method from my extension, everything is working like before, but the deprecation is still there. I guess is something inside Symfony itself

@sh4ka
Copy link

sh4ka commented Oct 3, 2016

Is it possible that the template is still cached?

@garak
Copy link
Contributor Author

garak commented Oct 3, 2016

Removed all the cache, no luck

@stof
Copy link
Member

stof commented Oct 3, 2016

Already fixed in #20079 but not yet part of a stable Symfony release

@stof stof closed this as completed Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants