1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-06-02 04:04:55 +02:00

Update bridge_collectors.md

This commit is contained in:
Maxime Bouroumeau-Fuseau 2013-09-10 14:37:17 +02:00
parent 5beed31722
commit 279f1bf63f

View File

@ -95,7 +95,7 @@ You need to wrap your `Twig_Environment` object into a `DebugBar\Bridge\Twig\Tra
$loader = new Twig_Loader_Filesystem('.');
$env = new DebugBar\Bridge\Twig\TraceableTwigEnvironment(new Twig_Environment($loader));
$debugbar->addCollector(new DebugBar\Bridge\Twig\TwigDataCollector($env));
$debugbar->addCollector(new DebugBar\Bridge\Twig\TwigCollector($env));
You can provide a `DebugBar\DataCollector\TimeDataCollector` as the second argument of
`TraceableTwigEnvironment` so render operation can be measured.