MessageListener

class \TYPO3\CMS\Webhooks\Listener\MessageListener

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.

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Properties

$bus  : MessageBusInterface
$logger  : LoggerInterface
$messageFactory  : WebhookMessageFactory

Methods

__construct()  : mixed
__invoke()  : void

Properties

$bus read-only

protected MessageBusInterface $bus

$logger read-only

protected LoggerInterface $logger

Methods

__invoke()

public __invoke(mixed $object) : void

Parameters

$object : mixed
On this page