class HandlersLocator implements HandlersLocatorInterface (View source)

Properties

protected Repository $config
protected Application $app

Methods

__construct(Application $app, Repository $config)

No description

iterable
getHandlers(Envelope $envelope)

No description

bool
shouldHandle(Envelope $envelope, HandlerDescriptor $handlerDescriptor)

Note: This was taken from the Symfony HandlersLocator class. I wish it were a trait or something more reusable but the logic seems important so we should add it to our own.

Details

__construct(Application $app, Repository $config)

No description

Parameters

Application $app
Repository $config

iterable getHandlers(Envelope $envelope)

No description

Parameters

Envelope $envelope

Return Value

iterable

private bool shouldHandle(Envelope $envelope, HandlerDescriptor $handlerDescriptor)

Note: This was taken from the Symfony HandlersLocator class. I wish it were a trait or something more reusable but the logic seems important so we should add it to our own.

Parameters

Envelope $envelope
HandlerDescriptor $handlerDescriptor

Return Value

bool