W3cubDocs

/Symfony 4.1

SendMessageMiddleware

class SendMessageMiddleware implements MiddlewareInterface, EnvelopeAwareInterface

Methods

__construct(SenderLocatorInterface $senderLocator, array $messagesToSendAndHandleMapping = array())
mixed handle($message, callable $next)

Details

__construct(SenderLocatorInterface $senderLocator, array $messagesToSendAndHandleMapping = array())

Parameters

SenderLocatorInterface $senderLocator
array $messagesToSendAndHandleMapping

mixed handle($message, callable $next)

Parameters

$message
callable $next

Return Value

mixed