MessengerDataCollector
class MessengerDataCollector extends DataCollector implements LateDataCollectorInterface
Properties
protected | $data | from DataCollector |
Methods
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 |
registerBus(string $name, TraceableMessageBus $bus) | ||
collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. | ||
lateCollect() Collects data as late as possible. | ||
string | getName() Returns the name of the collector. | |
reset() Resets this data collector to its initial state. | ||
int | getExceptionsCount(string $bus = null) | |
array | getMessages(string $bus = null) | |
array | getBuses() |
Details
serialize()
unserialize($data)
Parameters
$data |
protected Data cloneVar(mixed $var)
Converts the variable into a serializable Data instance.
This array can be displayed in the template using the VarDumper component.
Parameters
mixed | $var |
Return Value
Data |
protected callable[] getCasters()
Return Value
callable[] | The casters to add to the cloner |
registerBus(string $name, TraceableMessageBus $bus)
Parameters
string | $name | |
TraceableMessageBus | $bus |
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.
Parameters
Request | $request | |
Response | $response | |
Exception | $exception |
lateCollect()
Collects data as late as possible.
string getName()
Returns the name of the collector.
Return Value
string | The collector name |
reset()
Resets this data collector to its initial state.
int getExceptionsCount(string $bus = null)
Parameters
string | $bus |
Return Value
int |
array getMessages(string $bus = null)
Parameters
string | $bus |
Return Value
array |
array getBuses()
Return Value
array |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Messenger/DataCollector/MessengerDataCollector.html