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:
parent
5beed31722
commit
279f1bf63f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user