TwigDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $computed : array<string|int, mixed>
- $profile : mixed
- $twig : mixed
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getBlockCount() : mixed
- getHtmlCallGraph() : mixed
- getMacroCount() : mixed
- getName() : string
- {@inheritdoc}
- getProfile() : mixed
- getTemplateCount() : mixed
- getTemplatePaths() : mixed
- getTemplates() : mixed
- getTime() : mixed
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- computeData() : mixed
- getComputedData() : mixed
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$computed
private
array<string|int, mixed>
$computed
$profile
private
mixed
$profile
$twig
private
mixed
$twig
Methods
__construct()
public
__construct(Profile $profile[, Environment $twig = null ]) : mixed
Parameters
- $profile : Profile
- $twig : Environment = null
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getBlockCount()
public
getBlockCount() : mixed
getHtmlCallGraph()
public
getHtmlCallGraph() : mixed
getMacroCount()
public
getMacroCount() : mixed
getName()
{@inheritdoc}
public
getName() : string
Return values
stringgetProfile()
public
getProfile() : mixed
getTemplateCount()
public
getTemplateCount() : mixed
getTemplatePaths()
public
getTemplatePaths() : mixed
getTemplates()
public
getTemplates() : mixed
getTime()
public
getTime() : mixed
lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
reset()
{@inheritdoc}
public
reset() : mixed
cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
DatagetCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
computeData()
private
computeData(Profile $profile) : mixed
Parameters
- $profile : Profile
getComputedData()
private
getComputedData(string $index) : mixed
Parameters
- $index : string