Skip to content

Commit 7425599

Browse files
committed
minor #11518 restructure paragraphs about sender and receiver (OskarStark)
This PR was merged into the 4.2 branch. Discussion ---------- restructure paragraphs about sender and receiver <!-- 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 ------- 551f777 restructure paragraphs about sender and receiver
2 parents 9791217 + 551f777 commit 7425599

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

components/messenger.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,12 @@ transport will be responsible for communicating with your message broker or 3rd
199199
Your own Sender
200200
~~~~~~~~~~~~~~~
201201

202-
Using the :class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface`,
203-
you can create your own message sender.
204202
Imagine that you already have an ``ImportantAction`` message going through the
205203
message bus and being handled by a handler. Now, you also want to send this
206204
message as an email.
207205

208-
First, create your sender::
206+
Using the :class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface`,
207+
you can create your own message sender::
209208

210209
namespace App\MessageSender;
211210

@@ -257,9 +256,7 @@ application but you can't use an API and need to use a shared CSV file with new
257256
orders.
258257

259258
You will read this CSV file and dispatch a ``NewOrder`` message. All you need to
260-
do is to write your custom CSV receiver and Symfony will do the rest.
261-
262-
First, create your receiver::
259+
do is to write your own CSV receiver::
263260

264261
namespace App\MessageReceiver;
265262

0 commit comments

Comments
 (0)