[TASK] Provide PSR-14 `RedirectWasHitEvent` as webhook message
With #99629 outgoing webhooks has been implemented. This also provide a simple way to create custom webhook messages for any PSR-14 event. Therefore, the `RedirectWasHit` event can be used to provide an additional webhook type and showcase the needed steps to add this for a core PSR-14 event. This change provides a webhook message for the already existing PSR-14 `RedirectWasHitEvent` of `ext:redirects`. Resolves: #100305 Related: #99629 Releases: main Change-Id: If63a665571402f9491c8a576516ec25080e7c31c Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78261 Tested-by:core-ci <typo3@b13.com> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Documentation/Changelog/12.3/Feature-99629-Webhooks-OutgoingWebhooksForTYPO3.rst 1 addition, 0 deletions.../12.3/Feature-99629-Webhooks-OutgoingWebhooksForTYPO3.rst
- typo3/sysext/redirects/Classes/Message/RedirectWasHitMessage.php 58 additions, 0 deletions...ysext/redirects/Classes/Message/RedirectWasHitMessage.php
- typo3/sysext/redirects/Resources/Private/Language/locallang_db.xlf 3 additions, 0 deletions...ext/redirects/Resources/Private/Language/locallang_db.xlf
- typo3/sysext/redirects/Tests/Functional/Fixtures/sys_redirect.csv 3 additions, 0 deletions...sext/redirects/Tests/Functional/Fixtures/sys_redirect.csv
- typo3/sysext/redirects/Tests/Functional/Fixtures/sys_webhook.csv 4 additions, 0 deletions...ysext/redirects/Tests/Functional/Fixtures/sys_webhook.csv
- typo3/sysext/redirects/Tests/Functional/WebhookExecutionTest.php 97 additions, 0 deletions...ysext/redirects/Tests/Functional/WebhookExecutionTest.php
Please register or sign in to comment