Skip to content

Commit 76eeecb

Browse files
committed
Minor tweak
1 parent 6bac4e0 commit 76eeecb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

messenger.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,8 @@ Possible options to configure with tags are:
19401940
Handling Multiple Messages
19411941
~~~~~~~~~~~~~~~~~~~~~~~~~~
19421942

1943-
A handler class can handle multiple messages. For that add the ``#AsMessageHandler`` attribute to the handling methods::
1943+
A single handler class can handle multiple messages. For that add the
1944+
``#AsMessageHandler`` attribute to all the handling methods::
19441945

19451946
// src/MessageHandler/SmsNotificationHandler.php
19461947
namespace App\MessageHandler;
@@ -1965,8 +1966,9 @@ A handler class can handle multiple messages. For that add the ``#AsMessageHandl
19651966

19661967
.. deprecated:: 6.2
19671968

1968-
Implementing the :class:`Symfony\\Component\\Messenger\\Handler\\MessageSubscriberInterface` is another way to
1969-
handle multiple messages with one handler class. This interface was deprecated in Symfony 6.2.
1969+
Implementing the :class:`Symfony\\Component\\Messenger\\Handler\\MessageSubscriberInterface`
1970+
is another way to handle multiple messages with one handler class. This
1971+
interface was deprecated in Symfony 6.2.
19701972

19711973
Binding Handlers to Different Transports
19721974
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)