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()

No description

int
getExceptionsCount(string $bus = null)

No description

array
getMessages(string $bus = null)

No description

array
getBuses()

No description

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()

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