MessageListener
Read onlyYes
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
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $bus : MessageBusInterface
- $logger : LoggerInterface
- $messageFactory : WebhookMessageFactory
Methods
- __construct() : mixed
- __invoke() : void
Properties
$bus
protected
MessageBusInterface
$bus
$logger
protected
LoggerInterface
$logger
$messageFactory
protected
WebhookMessageFactory
$messageFactory
Methods
__construct()
public
__construct(MessageBusInterface $bus, WebhookMessageFactory $messageFactory, LoggerInterface $logger) : mixed
Parameters
- $bus : MessageBusInterface
- $messageFactory : WebhookMessageFactory
- $logger : LoggerInterface
__invoke()
public
__invoke(mixed $object) : void
Parameters
- $object : mixed