Skip to content

Commit c3c0b55

Browse files
committed
minor #9771 some tweaks for the Messenger component docs (xabbuh)
This PR was merged into the master branch. Discussion ---------- some tweaks for the Messenger component docs <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- fc90426 some tweaks for the Messenger component docs
2 parents 3420f0c + fc90426 commit c3c0b55

File tree

2 files changed

+521
-130
lines changed

2 files changed

+521
-130
lines changed

components/messenger.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Concepts
3838
Bus
3939
---
4040

41-
The bus is used to dispatch messages. The behaviour of the bus is in its ordered
41+
The bus is used to dispatch messages. The behavior of the bus is in its ordered
4242
middleware stack. The component comes with a set of middleware that you can use.
4343

4444
When using the message bus with Symfony's FrameworkBundle, the following middleware
@@ -63,9 +63,9 @@ Example::
6363

6464
$result = $bus->dispatch(new MyMessage(/* ... */));
6565

66-
.. note:
66+
.. note::
6767

68-
Every middleware needs to implement the ``MiddlewareInterface`` interface.
68+
Every middleware needs to implement the ``MiddlewareInterface``.
6969

7070
Handlers
7171
--------
@@ -89,16 +89,16 @@ that will do the required processing for your message::
8989
Transports
9090
----------
9191

92-
In order to send and receive messages, you will have to configure a transport. An
93-
transport will be responsible of communicating with your message broker or 3rd parties.
92+
In order to send and receive messages, you will have to configure a transport. A
93+
transport will be responsible for communicating with your message broker or 3rd parties.
9494

95-
Your own sender
95+
Your own Sender
9696
~~~~~~~~~~~~~~~
9797

9898
Using the ``SenderInterface``, you can easily create your own message sender.
99-
Let's say you already have an ``ImportantAction`` message going through the
100-
message bus and handled by a handler. Now, you also want to send this message as
101-
an email.
99+
Imagine that you already have an ``ImportantAction`` message going through the
100+
message bus and being handled by a handler. Now, you also want to send this
101+
message as an email.
102102

103103
First, create your sender::
104104

@@ -135,13 +135,13 @@ First, create your sender::
135135
}
136136
}
137137

138-
Your own receiver
138+
Your own Receiver
139139
~~~~~~~~~~~~~~~~~
140140

141141
A receiver is responsible for receiving messages from a source and dispatching
142142
them to the application.
143143

144-
Let's say you already processed some "orders" in your application using a
144+
Imagine you already processed some "orders" in your application using a
145145
``NewOrder`` message. Now you want to integrate with a 3rd party or a legacy
146146
application but you can't use an API and need to use a shared CSV file with new
147147
orders.
@@ -183,10 +183,10 @@ First, create your receiver::
183183
}
184184
}
185185

186-
Receiver and Sender on the same bus
186+
Receiver and Sender on the same Bus
187187
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188188

189-
To allow us to receive and send messages on the same bus and prevent an infinite
189+
To allow sending and receiving messages on the same bus and prevent an infinite
190190
loop, the message bus is equipped with the ``WrapIntoReceivedMessage`` middleware.
191191
It will wrap the received messages into ``ReceivedMessage`` objects and the
192192
``SendMessageMiddleware`` middleware will know it should not route these

0 commit comments

Comments
 (0)