Elao / WebProfilerExtraBundle

Adding routing, container, assetic & twig information in the web profiler
http://www.elao.com
MIT License
262 stars 48 forks source link

Compatibility symfony 2.7 #71

Closed nicolastiran closed 6 years ago

nicolastiran commented 9 years ago

Hello,

I have this message with Symfony 2.7 : Defining the initRuntime() method in an extension is deprecated. Use the needs_environment option to get the Twig_Environment instance in filters, functions, or tests; or explicitly implement Twig_Extension_InitRuntimeInterface if needed (not recommended).

Symfony : 2.7.5 WebProfilerExtraBundle : 2.3-dev

benji07 commented 9 years ago

I think you have an extension that cause this error.

You could add a var_dump inside the Twig_Environnement class (inside the initRuntime method just before the trigger_error) to see which one cause this error

benji07 commented 6 years ago

Spring cleaning, If this issue is still relevant, please reopen-it.