EventDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
EventDataCollector.
Tags
Interfaces, Classes and Traits
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $dispatcher : mixed
- $cloner : ClonerInterface
- $valueExporter : ValueExporter
- __construct() : mixed
- collect() : mixed
- {@inheritdoc}
- getCalledListeners() : array<string|int, mixed>
- Gets the called listeners.
- getName() : mixed
- {@inheritdoc}
- getNotCalledListeners() : array<string|int, mixed>
- Gets the not called listeners.
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- serialize() : mixed
- setCalledListeners() : mixed
- Sets the called listeners.
- setNotCalledListeners() : mixed
- Sets the not called listeners.
- unserialize() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- varToString() : string
- Converts a PHP variable to a string.
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$dispatcher
protected
mixed
$dispatcher
$cloner
private
ClonerInterface
$cloner
$valueExporter
private
ValueExporter
$valueExporter
Methods
__construct()
public
__construct([EventDispatcherInterface $dispatcher = null ]) : mixed
Parameters
- $dispatcher : EventDispatcherInterface = null
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Exception $exception = null ]) : mixed
Parameters
Return values
mixed —getCalledListeners()
Gets the called listeners.
public
getCalledListeners() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —An array of called listeners
getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getNotCalledListeners()
Gets the not called listeners.
public
getNotCalledListeners() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —An array of not called listeners
lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
Return values
mixed —reset()
public
reset() : mixed
Return values
mixed —serialize()
public
serialize() : mixed
Return values
mixed —setCalledListeners()
Sets the called listeners.
public
setCalledListeners(array<string|int, mixed> $listeners) : mixed
Parameters
- $listeners : array<string|int, mixed>
-
An array of called listeners
Tags
Return values
mixed —setNotCalledListeners()
Sets the not called listeners.
public
setNotCalledListeners(array<string|int, mixed> $listeners) : mixed
Parameters
- $listeners : array<string|int, mixed>
-
An array of not called listeners
Tags
Return values
mixed —unserialize()
public
unserialize(mixed $data) : mixed
Parameters
- $data : mixed
Return values
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
Data —getCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
varToString()
Converts a PHP variable to a string.
protected
varToString(mixed $var) : string
Parameters
- $var : mixed
-
A PHP variable
Tags
Return values
string —The string representation of the variable