class EventDataCollector extends DataCollector implements LateDataCollectorInterface
EventDataCollector.
protected | $data | from DataCollector | |
protected | $dispatcher |
serialize() | from DataCollector | |
unserialize($data) | from DataCollector | |
Data | cloneVar(mixed $var) Converts the variable into a serializable Data instance. | from DataCollector |
callable[] | getCasters() | from DataCollector |
__construct(EventDispatcherInterface $dispatcher = null) | ||
collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. | ||
reset() Resets this data collector to its initial state. | ||
lateCollect() Collects data as late as possible. | ||
setCalledListeners(array $listeners) Sets the called listeners. | ||
array | getCalledListeners() Gets the called listeners. | |
setNotCalledListeners(array $listeners) Sets the not called listeners. | ||
array | getNotCalledListeners() Gets the not called listeners. | |
setOrphanedEvents(array $events) Sets the orphaned events. | ||
array | getOrphanedEvents() Gets the orphaned events. | |
string | getName() Returns the name of the collector. |
$data |
Converts the variable into a serializable Data instance.
This array can be displayed in the template using the VarDumper component.
mixed | $var |
Data |
callable[] | The casters to add to the cloner |
EventDispatcherInterface | $dispatcher |
Collects data for the given Request and Response.
Request | $request | |
Response | $response | |
Exception | $exception |
Resets this data collector to its initial state.
Collects data as late as possible.
Sets the called listeners.
array | $listeners | An array of called listeners |
TraceableEventDispatcher |
Gets the called listeners.
array | An array of called listeners |
TraceableEventDispatcher |
Sets the not called listeners.
array | $listeners |
TraceableEventDispatcher |
Gets the not called listeners.
array |
TraceableEventDispatcher |
Sets the orphaned events.
array | $events | An array of orphaned events |
TraceableEventDispatcher |
Gets the orphaned events.
array | An array of orphaned events |
TraceableEventDispatcher |
Returns the name of the collector.
string | The collector name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/DataCollector/EventDataCollector.html