diff --git a/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php b/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php index c0acf6f6c3d3b..e0d764e5c4cb2 100644 --- a/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php +++ b/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php @@ -20,10 +20,29 @@ class AsMessageHandler { public function __construct( + /** + * Name of the bus from which this handler can receive messages, by default all buses. + */ public ?string $bus = null, + + /** + * Name of the transport from which this handler can receive messages, by default all transports. + */ public ?string $fromTransport = null, + + /** + * Type of messages (FQCN) that can be processed by the handler, only needed if can't be guessed by type-hint. + */ public ?string $handles = null, + + /** + * Name of the method that will process the message, only if the target is a class. + */ public ?string $method = null, + + /** + * Priority of this handler when multiple handlers can process the same message. + */ public int $priority = 0, ) { }