RoutableMessageBus
in package
implements
MessageBusInterface
Bus of buses that is routable using a BusNameStamp.
This is useful when passed to Worker: messages received from the transport can be sent to the correct bus.
Tags
Table of Contents
Interfaces
Properties
- $busLocator : mixed
- $fallbackBus : mixed
Methods
- __construct() : mixed
- dispatch() : Envelope
- Dispatches the given message.
Properties
$busLocator
private
mixed
$busLocator
$fallbackBus
private
mixed
$fallbackBus
Methods
__construct()
public
__construct(ContainerInterface $busLocator[, MessageBusInterface $fallbackBus = null ]) : mixed
Parameters
- $busLocator : ContainerInterface
- $fallbackBus : MessageBusInterface = null
dispatch()
Dispatches the given message.
public
dispatch(object $envelope[, array<string|int, mixed> $stamps = [] ]) : Envelope
Parameters
- $envelope : object
- $stamps : array<string|int, mixed> = []