Skip to content

Commit ae80e8a

Browse files
committed
Minor reword
1 parent a44000e commit ae80e8a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

messenger.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,15 @@ message class (or a message interface)::
7676
using PHP 7.4), by implementing :class:`Symfony\\Component\\Messenger\\Handler\\MessageHandlerInterface`
7777
instead.
7878

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
8086

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.
8588

8689
Thanks to :ref:`autoconfiguration <services-autoconfigure>` and the ``SmsNotification``
8790
type-hint, Symfony knows that this handler should be called when an ``SmsNotification``

0 commit comments

Comments
 (0)