class SendersLocator implements SendersLocatorInterface

Maps a message to a list of senders.

Methods

__construct(array $senders, array $sendAndHandle = array())

No description

iterable
getSenders(Envelope $envelope, bool|null $handle = false)

Gets the senders for the given message name.

Details

__construct(array $senders, array $sendAndHandle = array())

Parameters

array $senders
array $sendAndHandle

iterable getSenders(Envelope $envelope, bool|null $handle = false)

Gets the senders for the given message name.

Parameters

Envelope $envelope
bool|null $handle

Return Value

iterable Indexed by sender alias if available