W3cubDocs

/Symfony 4.1

SenderLocator

class SenderLocator implements SenderLocatorInterface

Methods

__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)

Details

__construct(ContainerInterface $senderServiceLocator, array $messageToSenderIdMapping)

Parameters

ContainerInterface $senderServiceLocator
array $messageToSenderIdMapping

SenderInterface|null getSenderForMessage(object $message)

Gets the sender (if applicable) for the given message object.

Parameters

object $message

Return Value

SenderInterface|null

static getValueFromMessageRouting(array $mapping, $message)

Parameters

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