W3cubDocs

/Symfony 4.1

ContainerHandlerLocator

class ContainerHandlerLocator implements HandlerLocatorInterface

Methods

__construct(ContainerInterface $container)
callable resolve(object $message)

Returns the handler for the given message.

Details

__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

callable resolve(object $message)

Returns the handler for the given message.

Parameters

object $message

Return Value

callable

Exceptions

NoHandlerForMessageException