\DebugBar\Bridge\TwigTwigCollector

Collects data about rendered templates

http://twig.sensiolabs.org/

Your Twig_Environment object needs to be wrapped in a TraceableTwigEnvironment object

$env = new TraceableTwigEnvironment(new Twig_Environment($loader)); $debugbar->addCollector(new TwigCollector($env));

Summary

Methods
Properties
Constants
setDefaultDataFormatter()
getDefaultDataFormatter()
setDataFormatter()
getDataFormatter()
formatVar()
formatDuration()
formatBytes()
__construct()
collect()
getName()
getWidgets()
getAssets()
No public properties found
No constants found
No protected methods found
$dataFormater
N/A
No private methods found
$defaultDataFormatter
N/A

Properties

$dataFormater

$dataFormater : 

Type

$defaultDataFormatter

$defaultDataFormatter : 

Type

Methods

setDefaultDataFormatter()

setDefaultDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) 

Sets the default data formater instance used by all collectors subclassing this class

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

setDataFormatter()

setDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) : $this

Sets the data formater instance used by this collector

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

Returns

$this

formatVar()

formatVar(  $var) 

Parameters

$var

formatDuration()

formatDuration(  $seconds) 

Parameters

$seconds

formatBytes()

formatBytes(  $size,   $precision = 2) 

Parameters

$size
$precision

collect()

collect() 

getName()

getName() 

getWidgets()

getWidgets() : array

Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}

Returns

array

getAssets()

getAssets() : array

Returns an array with the following keys: - base_path - base_url - css: an array of filenames - js: an array of filenames

Returns

array