Feature: #99632 - Introduce PHP attribute to mark a webhook message

See forge#99632


A new custom PHP attribute \TYPO3\CMS\Core\Attribute\WebhookMessage has been added in order to register a message as a specific webhook message, to send as remote status.

The attribute must have an identifier for the webhook type (unique), and a description that explains the purpose of the message.

Optionally, a property method can be set for the attribute, that contains the factory method. By default this is createFromEvent, which is typically used when creating a message by an event listener, see webhooks documentation for more details.


use TYPO3\CMS\Core\Attribute\WebhookMessage;

    identifier: 'typo3/file-updated',
    description: 'LLL:EXT:webhooks/Resources/Private/Language/locallang_db.xlf:sys_webhook.webhook_type.typo3-file-updated'
final class AnyKindOfMessage
    // ...


It is now possible to tag any PHP class as webhook message by the PHP attribute \TYPO3\CMS\Core\Attribute\WebhookMessage.