File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,13 @@ message class (or a message interface)::
76
76
using PHP 7.4), by implementing :class: `Symfony\\ Component\\ Messenger\\ Handler\\ MessageHandlerInterface `
77
77
instead.
78
78
79
+ .. note ::
80
+
81
+ As of Symfony 6.1, the ``AsMessageHandler `` attribute can be used on individual
82
+ class methods as well. You may use the attribute on as many methods in a single
83
+ class as you like, allowing you to group the handling of multiple related types
84
+ of messages.
85
+
79
86
Thanks to :ref: `autoconfiguration <services-autoconfigure >` and the ``SmsNotification ``
80
87
type-hint, Symfony knows that this handler should be called when an ``SmsNotification ``
81
88
message is dispatched. Most of the time, this is all you need to do. But you can
You can’t perform that action at this time.
0 commit comments