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)::
7676 using PHP 7.4), by implementing :class: `Symfony\\ Component\\ Messenger\\ Handler\\ MessageHandlerInterface `
7777 instead.
7878
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+
7986Thanks to :ref: `autoconfiguration <services-autoconfigure >` and the ``SmsNotification ``
8087type-hint, Symfony knows that this handler should be called when an ``SmsNotification ``
8188message 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