W3cubDocs

/Symfony 4.1

TraceableMessageBus

class TraceableMessageBus implements MessageBusInterface

Methods

__construct(MessageBusInterface $decoratedBus)
mixed dispatch(object|Envelope $message)

Dispatches the given message.

array getDispatchedMessages()
reset()

Details

__construct(MessageBusInterface $decoratedBus)

Parameters

MessageBusInterface $decoratedBus

mixed dispatch(object|Envelope $message)

Dispatches the given message.

The bus can return a value coming from handlers, but is not required to do so.

Parameters

object|Envelope $message The message or the message pre-wrapped in an envelope

Return Value

mixed

array getDispatchedMessages()

Return Value

array

reset()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Messenger/TraceableMessageBus.html