class HandlersLocator implements HandlersLocatorInterface

Maps a message to a list of handlers.

Methods

__construct(array $handlers)

No description

iterable
getHandlers(Envelope $envelope)

Returns the handlers for the given message name.

static array
listTypes(Envelope $envelope)

No description

Details

__construct(array $handlers)

Parameters

array $handlers

iterable getHandlers(Envelope $envelope)

Returns the handlers for the given message name.

Parameters

Envelope $envelope

Return Value

iterable Indexed by handler alias if available

static array listTypes(Envelope $envelope)

Parameters

Envelope $envelope

Return Value

array