class MessengerDataCollector extends DataCollector implements LateDataCollectorInterface

Properties

protected $data from DataCollector

Methods

serialize()

No description

unserialize($data)

No description

cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

callable[]
getCasters()

No description

registerBus(string $name, TraceableMessageBus $bus)

No description

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)

No description

array
getMessages(string $bus = null)

No description

array
getBuses()

No description

Details

in DataCollector at line 37
serialize()

in DataCollector at line 42
unserialize($data)

Parameters

$data

in DataCollector at line 57
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

in DataCollector at line 77
protected callable[] getCasters()

Return Value

callable[] The casters to add to the cloner

at line 31
registerBus(string $name, TraceableMessageBus $bus)

Parameters

string $name
TraceableMessageBus $bus

at line 39
collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request
Response $response
Exception $exception

at line 47
lateCollect()

Collects data as late as possible.

at line 71
string getName()

Returns the name of the collector.

Return Value

string The collector name

at line 79
reset()

Resets this data collector to its initial state.

at line 120
int getExceptionsCount(string $bus = null)

Parameters

string $bus

Return Value

int

at line 127
array getMessages(string $bus = null)

Parameters

string $bus

Return Value

array

at line 136
array getBuses()

Return Value

array