HandlerLocator
class HandlerLocator implements HandlerLocatorInterface
Methods
| __construct(array $messageToHandlerMapping = array()) | ||
| callable | resolve(object $message) Returns the handler for the given message. |
Details
__construct(array $messageToHandlerMapping = array())
Parameters
| array | $messageToHandlerMapping |
callable resolve(object $message)
Returns the handler for the given message.
Parameters
| object | $message |
Return Value
| callable |
Exceptions
| NoHandlerForMessageException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Messenger/Handler/Locator/HandlerLocator.html