[FEATURE] Use Symfony attribute to autoconfigure message handler
Message handlers had to be registered in the extensions `Services.yaml` file with the `messenger.message_handler` tag. This patch enables automatic message handlers registration by using the existing `\Symfony\Component\Messenger\Attribute\AsMessageHandler` symfony PHP attribute. Resolves: #101700 Releases: main Change-Id: I8dbd24d43f61c66b7e445b71ae1db3a178aa4991 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82284 Tested-by:Oliver Bartsch <bo@cedev.de> Tested-by:
Daniel Goerz <daniel.goerz@b13.com> Reviewed-by:
Daniel Goerz <daniel.goerz@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com>
Showing
- typo3/sysext/core/Configuration/Services.php 17 additions, 0 deletionstypo3/sysext/core/Configuration/Services.php
- typo3/sysext/core/Documentation/Changelog/13.0/Feature-101700-UseSymfonyAttributeToAutoconfigureMessageHandler.rst 82 additions, 0 deletions...1700-UseSymfonyAttributeToAutoconfigureMessageHandler.rst
- typo3/sysext/webhooks/Classes/MessageHandler/WebhookMessageHandler.php 2 additions, 0 deletions...webhooks/Classes/MessageHandler/WebhookMessageHandler.php
- typo3/sysext/webhooks/Configuration/Services.yaml 0 additions, 4 deletionstypo3/sysext/webhooks/Configuration/Services.yaml
- typo3/sysext/workspaces/Classes/MessageHandler/StageChangeNotificationHandler.php 2 additions, 0 deletions...Classes/MessageHandler/StageChangeNotificationHandler.php
- typo3/sysext/workspaces/Configuration/Services.yaml 0 additions, 4 deletionstypo3/sysext/workspaces/Configuration/Services.yaml
Please register or sign in to comment