EventDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Interfaces, Classes and Traits
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $dispatcher : mixed
- $cloner : ClonerInterface
- $currentRequest : mixed
- $requestStack : mixed
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getCalledListeners() : array<string|int, mixed>|Data
- getName() : string
- {@inheritdoc}
- getNotCalledListeners() : array<string|int, mixed>|Data
- getOrphanedEvents() : array<string|int, mixed>|Data
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- setCalledListeners() : mixed
- setNotCalledListeners() : mixed
- setOrphanedEvents() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$dispatcher
protected
mixed
$dispatcher
$cloner
private
ClonerInterface
$cloner
$currentRequest
private
mixed
$currentRequest
$requestStack
private
mixed
$requestStack
Methods
__construct()
public
__construct([EventDispatcherInterface|null $dispatcher = null ][, RequestStack|null $requestStack = null ]) : mixed
Parameters
- $dispatcher : EventDispatcherInterface|null = null
- $requestStack : RequestStack|null = null
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable|null $exception = null ]) : mixed
Parameters
Return values
mixed —getCalledListeners()
public
getCalledListeners() : array<string|int, mixed>|Data
Tags
Return values
array<string|int, mixed>|Data —getName()
{@inheritdoc}
public
getName() : string
Return values
string —getNotCalledListeners()
public
getNotCalledListeners() : array<string|int, mixed>|Data
Tags
Return values
array<string|int, mixed>|Data —getOrphanedEvents()
public
getOrphanedEvents() : array<string|int, mixed>|Data
Tags
Return values
array<string|int, mixed>|Data —lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
Return values
mixed —reset()
public
reset() : mixed
Return values
mixed —setCalledListeners()
public
setCalledListeners(array<string|int, mixed> $listeners) : mixed
Parameters
- $listeners : array<string|int, mixed>
-
An array of called listeners
Tags
Return values
mixed —setNotCalledListeners()
public
setNotCalledListeners(array<string|int, mixed> $listeners) : mixed
Parameters
- $listeners : array<string|int, mixed>
Tags
Return values
mixed —setOrphanedEvents()
public
setOrphanedEvents(array<string|int, mixed> $events) : mixed
Parameters
- $events : array<string|int, mixed>
-
An array of orphaned events
Tags
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