Symfony: Twig extensions use deprecated features

Created on 3 Oct 2016  路  3Comments  路  Source: symfony/symfony

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

Most helpful comment

Already fixed in https://github.com/symfony/symfony/pull/20079 but not yet part of a stable Symfony release

All 3 comments

Is it possible that the template is still cached?

Removed all the cache, no luck

Already fixed in https://github.com/symfony/symfony/pull/20079 but not yet part of a stable Symfony release

Was this page helpful?
0 / 5 - 0 ratings