File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,15 @@ 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 ::
79
+ .. tip ::
80
+
81
+ You can also use the ``#[AsMessageHandler] `` attribute on individual class
82
+ methods. You may use the attribute on as many methods in a single class as you
83
+ like, allowing you to group the handling of multiple related types of messages.
84
+
85
+ .. versionadded :: 6.1
80
86
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.
87
+ Support for ``#[AsMessageHandler] `` on methods was introduced in Symfony 6.1.
85
88
86
89
Thanks to :ref: `autoconfiguration <services-autoconfigure >` and the ``SmsNotification ``
87
90
type-hint, Symfony knows that this handler should be called when an ``SmsNotification ``
You can’t perform that action at this time.
0 commit comments