class HandlersLocator implements HandlersLocatorInterface (View source)

Properties

protected Repository $config
protected Application $app
protected EntityManager $entityManager

Methods

__construct(Application $app, Repository $config, EntityManager $entityManager)

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, EntityManager $entityManager)

No description

Parameters

Application $app
Repository $config
EntityManager $entityManager

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