@@ -38,7 +38,7 @@ Concepts
3838Bus
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
4242middleware stack. The component comes with a set of middleware that you can use.
4343
4444When 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
7070Handlers
7171--------
@@ -89,16 +89,16 @@ that will do the required processing for your message::
8989Transports
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
9898Using 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
103103First, 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
141141A receiver is responsible for receiving messages from a source and dispatching
142142them 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
146146application but you can't use an API and need to use a shared CSV file with new
147147orders.
@@ -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
190190loop, the message bus is equipped with the ``WrapIntoReceivedMessage `` middleware.
191191It will wrap the received messages into ``ReceivedMessage `` objects and the
192192``SendMessageMiddleware `` middleware will know it should not route these
0 commit comments