WebhookMessageHandler
A Message Handler to deal with a webhook message.
It sends the message to all registered HTTP endpoints.
Table of Contents
Methods
- __construct() : mixed
- __invoke() : void
- sendRequest() : ResponseInterface
Methods
__construct()
public
__construct(WebhookRepository $repository, RequestFactory $requestFactory, LoggerInterface $logger) : mixed
Parameters
- $repository : WebhookRepository
- $requestFactory : RequestFactory
- $logger : LoggerInterface
__invoke()
public
__invoke(WebhookMessageInterface $message) : void
Parameters
- $message : WebhookMessageInterface
sendRequest()
protected
sendRequest(WebhookInstruction $webhookInstruction, WebhookMessageInterface $message) : ResponseInterface
Parameters
- $webhookInstruction : WebhookInstruction
- $message : WebhookMessageInterface