class SenderLocator implements SenderLocatorInterface
__construct(ContainerInterface $senderServiceLocator, array $messageToSenderIdMapping) | ||
SenderInterface|null | getSenderForMessage(object $message) Gets the sender (if applicable) for the given message object. | |
static | getValueFromMessageRouting(array $mapping, $message) |
ContainerInterface | $senderServiceLocator | |
array | $messageToSenderIdMapping |
Gets the sender (if applicable) for the given message object.
object | $message |
SenderInterface|null |
array | $mapping | |
$message |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Messenger/Asynchronous/Routing/SenderLocator.html