‪TYPO3CMS  ‪main
TYPO3\CMS\Webhooks\Listener\MessageListener Class Reference

Public Member Functions

 __construct (protected readonly MessageBusInterface $bus, protected readonly WebhookMessageFactory $messageFactory, protected readonly LoggerInterface $logger,)
 __invoke (mixed $object)

Detailed Description

Listens to registered PSR-14 events and creates a message out of it. The MessageListener is automatically attached to the respecting Events by DI.

Messages are dispatched to the message bus after creation.

not part of TYPO3 Core API

Definition at line 32 of file MessageListener.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Webhooks\Listener\MessageListener::__construct ( protected readonly MessageBusInterface  $bus,
protected readonly WebhookMessageFactory  $messageFactory,
protected readonly LoggerInterface  $logger 

Definition at line 34 of file MessageListener.php.

Member Function Documentation

◆ __invoke()

TYPO3\CMS\Webhooks\Listener\MessageListener::__invoke ( mixed  $object)

Definition at line 40 of file MessageListener.php.