TraceableMessageBus
in package
implements
MessageBusInterface
Tags
Table of Contents
Interfaces
Properties
- $decoratedBus : mixed
- $dispatchedMessages : array<string|int, mixed>
Methods
- __construct() : mixed
- dispatch() : Envelope
- Dispatches the given message.
- getDispatchedMessages() : array<string|int, mixed>
- reset() : mixed
- getCaller() : array<string|int, mixed>
Properties
$decoratedBus
private
mixed
$decoratedBus
$dispatchedMessages
private
array<string|int, mixed>
$dispatchedMessages
= []
Methods
__construct()
public
__construct(MessageBusInterface $decoratedBus) : mixed
Parameters
- $decoratedBus : MessageBusInterface
dispatch()
Dispatches the given message.
public
dispatch(object $message[, array<string|int, mixed> $stamps = [] ]) : Envelope
Parameters
- $message : object
-
The message or the message pre-wrapped in an envelope
- $stamps : array<string|int, mixed> = []
Return values
EnvelopegetDispatchedMessages()
public
getDispatchedMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>reset()
public
reset() : mixed
getCaller()
private
getCaller() : array<string|int, mixed>