maximebf / php-debugbar

Debug bar for PHP
phpdebugbar.com
MIT License
4.2k stars 401 forks source link

Silex> Twig monitor 0 templates rendered #306

Open h2lsoft opened 7 years ago

h2lsoft commented 7 years ago

Hi,

thank you for your job, we use silex with your great debugbar but we have a problem, every thing is well monitored except for Twig :

tab appeared but we have a message => 0 templates were rendered.

Here our code ?

// load twig package

$loader = new Twig_Environment($app['twig']->getLoader());

$env = new DebugBar\Bridge\Twig\TraceableTwigEnvironment($loader);

$app['debug_bar']->addCollector(new DebugBar\Bridge\Twig\TwigCollector($env));

Thanks

shawe commented 7 years ago

For me was happening the same using twig 1.34.4