File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1940,7 +1940,8 @@ Possible options to configure with tags are:
1940
1940
Handling Multiple Messages
1941
1941
~~~~~~~~~~~~~~~~~~~~~~~~~~
1942
1942
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::
1944
1945
1945
1946
// src/MessageHandler/SmsNotificationHandler.php
1946
1947
namespace App\MessageHandler;
@@ -1965,8 +1966,9 @@ A handler class can handle multiple messages. For that add the ``#AsMessageHandl
1965
1966
1966
1967
.. deprecated :: 6.2
1967
1968
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.
1970
1972
1971
1973
Binding Handlers to Different Transports
1972
1974
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments