@@ -50,9 +50,10 @@ serialized::
50
50
51
51
.. _messenger-handler :
52
52
53
- A message handler is a PHP callable, the recommended way to create it is to create a class that
54
- implements ``MessageHandlerInterface `` and has an ``__invoke() `` method that's
55
- type-hinted with the message class (or a message interface)::
53
+ A message handler is a PHP callable, the recommended way to create it is to
54
+ create a class that implements :class: `Symfony\\ Component\\ Messenger\\ Handler\\ MessageHandlerInterface `
55
+ and has an ``__invoke() `` method that's type-hinted with the message class (or a
56
+ message interface)::
56
57
57
58
// src/MessageHandler/SmsNotificationHandler.php
58
59
namespace App\MessageHandler;
@@ -111,7 +112,7 @@ Transports: Async/Queued Messages
111
112
By default, messages are handled as soon as they are dispatched. If you want
112
113
to handle a message asynchronously, you can configure a transport. A transport
113
114
is capable of sending messages (e.g. to a queueing system) and then
114
- :ref: `receiving them via a worker<messenger-worker> `. Messenger supports
115
+ :ref: `receiving them via a worker <messenger-worker >`. Messenger supports
115
116
:ref: `multiple transports <messenger-transports-config >`.
116
117
117
118
.. note ::
@@ -503,7 +504,7 @@ different messages to them. For example:
503
504
# queue_name is specific to the doctrine transport
504
505
queue_name : high
505
506
506
- # for amqp send to a separate exchange then queue
507
+ # for AMQP send to a separate exchange then queue
507
508
# exchange:
508
509
# name: high
509
510
# queues:
@@ -1265,7 +1266,7 @@ Envelopes & Stamps
1265
1266
~~~~~~~~~~~~~~~~~~
1266
1267
1267
1268
A message can be any PHP object. Sometimes, you may need to configure something
1268
- extra about the message - like the way it should be handled inside Amqp or adding
1269
+ extra about the message - like the way it should be handled inside AMQP or adding
1269
1270
a delay before the message should be handled. You can do that by adding a "stamp"
1270
1271
to your message::
1271
1272
@@ -1319,8 +1320,8 @@ for each bus looks like this:
1319
1320
1320
1321
.. note ::
1321
1322
1322
- These middleware names are actually shortcuts names. The real service ids
1323
- are prefixed with ``messenger.middleware. ``.
1323
+ These middleware names are actually shortcut names. The real service ids
1324
+ are prefixed with ``messenger.middleware. `` (e.g. `` messenger.middleware.handle_message ``) .
1324
1325
1325
1326
The middleware are executed when the message is dispatched but *also * again when
1326
1327
a message is received via the worker (for messages that were sent to a transport
0 commit comments