‪TYPO3CMS  ‪main
TYPO3\CMS\Webhooks\MessageHandler\WebhookMessageHandler Class Reference

Public Member Functions

 __construct (private readonly WebhookRepository $repository, private readonly RequestFactory $requestFactory, private readonly LoggerInterface $logger,)
 
 __invoke (WebhookMessageInterface $message)
 

Protected Member Functions

 sendRequest (WebhookInstruction $webhookInstruction, WebhookMessageInterface $message)
 

Private Member Functions

 buildHash (WebhookInstruction $webhookInstruction, string $body)
 
 buildHeaders (WebhookInstruction $webhookInstruction, string $body)
 

Private Attributes

string $algo = 'sha256'
 

Detailed Description

A Message Handler to deal with a webhook message. It sends the message to all registered HTTP endpoints.

Definition at line 33 of file WebhookMessageHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Webhooks\MessageHandler\WebhookMessageHandler::__construct ( private readonly WebhookRepository  $repository,
private readonly RequestFactory  $requestFactory,
private readonly LoggerInterface  $logger 
)

Definition at line 37 of file WebhookMessageHandler.php.

Member Function Documentation

◆ __invoke()

TYPO3\CMS\Webhooks\MessageHandler\WebhookMessageHandler::__invoke ( WebhookMessageInterface  $message)

◆ buildHash()

TYPO3\CMS\Webhooks\MessageHandler\WebhookMessageHandler::buildHash ( WebhookInstruction  $webhookInstruction,
string  $body 
)
private

◆ buildHeaders()

◆ sendRequest()

Member Data Documentation

◆ $algo

string TYPO3\CMS\Webhooks\MessageHandler\WebhookMessageHandler::$algo = 'sha256'
private