Skip to content

Commit 44acf96

Browse files
committed
minor symfony#12806 [Messenger] Minor tweaks for the main Messenger article (javiereguiluz)
This PR was merged into the 4.3 branch. Discussion ---------- [Messenger] Minor tweaks for the main Messenger article The last change is needed because two consecutive dots look strange in the rendered docs: ![image](https://user-images.githubusercontent.com/73419/70722697-046de700-1cf8-11ea-93c3-f3c8ff40e4e3.png) Commits ------- 70503a7 [Messenger] Minor tweaks for the main Messenger article
2 parents 7a0bdba + 70503a7 commit 44acf96

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

messenger.rst

+9-8
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ serialized::
5050

5151
.. _messenger-handler:
5252

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)::
5657

5758
// src/MessageHandler/SmsNotificationHandler.php
5859
namespace App\MessageHandler;
@@ -111,7 +112,7 @@ Transports: Async/Queued Messages
111112
By default, messages are handled as soon as they are dispatched. If you want
112113
to handle a message asynchronously, you can configure a transport. A transport
113114
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
115116
:ref:`multiple transports <messenger-transports-config>`.
116117

117118
.. note::
@@ -503,7 +504,7 @@ different messages to them. For example:
503504
# queue_name is specific to the doctrine transport
504505
queue_name: high
505506
506-
# for amqp send to a separate exchange then queue
507+
# for AMQP send to a separate exchange then queue
507508
#exchange:
508509
# name: high
509510
#queues:
@@ -1240,7 +1241,7 @@ Envelopes & Stamps
12401241
~~~~~~~~~~~~~~~~~~
12411242

12421243
A message can be any PHP object. Sometimes, you may need to configure something
1243-
extra about the message - like the way it should be handled inside Amqp or adding
1244+
extra about the message - like the way it should be handled inside AMQP or adding
12441245
a delay before the message should be handled. You can do that by adding a "stamp"
12451246
to your message::
12461247

@@ -1294,8 +1295,8 @@ for each bus looks like this:
12941295

12951296
.. note::
12961297

1297-
These middleware names are actually shortcuts names. The real service ids
1298-
are prefixed with ``messenger.middleware.``.
1298+
These middleware names are actually shortcut names. The real service ids
1299+
are prefixed with ``messenger.middleware.`` (e.g. ``messenger.middleware.handle_message``).
12991300

13001301
The middleware are executed when the message is dispatched but *also* again when
13011302
a message is received via the worker (for messages that were sent to a transport

0 commit comments

Comments
 (0)