MessengerDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $traceableBuses : array<string|int, mixed>
Methods
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getBuses() : array<string|int, mixed>
- getExceptionsCount() : int
- getMessages() : array<string|int, mixed>
- getName() : string
- {@inheritdoc}
- lateCollect() : mixed
- Collects data as late as possible.
- registerBus() : mixed
- reset() : mixed
- {@inheritdoc}
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- collectMessage() : mixed
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$traceableBuses
private
array<string|int, mixed>
$traceableBuses
= []
Methods
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getBuses()
public
getBuses() : array<string|int, mixed>
Return values
array<string|int, mixed>getExceptionsCount()
public
getExceptionsCount([string $bus = null ]) : int
Parameters
- $bus : string = null
Return values
intgetMessages()
public
getMessages([string $bus = null ]) : array<string|int, mixed>
Parameters
- $bus : string = null
Return values
array<string|int, mixed>getName()
{@inheritdoc}
public
getName() : string
Return values
stringlateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
registerBus()
public
registerBus(string $name, TraceableMessageBus $bus) : mixed
Parameters
- $name : string
- $bus : TraceableMessageBus
reset()
{@inheritdoc}
public
reset() : 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
DatagetCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
collectMessage()
private
collectMessage(string $busName, array<string|int, mixed> $tracedMessage) : mixed
Parameters
- $busName : string
- $tracedMessage : array<string|int, mixed>