From 551f777f5b55b1f2c8410d6b074f4bd0c2ed261f Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 3 May 2019 12:27:51 +0200 Subject: [PATCH] restructure paragraphs about sender and receiver --- components/messenger.rst | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/messenger.rst b/components/messenger.rst index 89597e2ab4a..a18af4c3266 100644 --- a/components/messenger.rst +++ b/components/messenger.rst @@ -199,13 +199,12 @@ transport will be responsible for communicating with your message broker or 3rd Your own Sender ~~~~~~~~~~~~~~~ -Using the :class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface`, -you can create your own message sender. Imagine that you already have an ``ImportantAction`` message going through the message bus and being handled by a handler. Now, you also want to send this message as an email. -First, create your sender:: +Using the :class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface`, +you can create your own message sender:: namespace App\MessageSender; @@ -257,9 +256,7 @@ application but you can't use an API and need to use a shared CSV file with new orders. You will read this CSV file and dispatch a ``NewOrder`` message. All you need to -do is to write your custom CSV receiver and Symfony will do the rest. - -First, create your receiver:: +do is to write your own CSV receiver:: namespace App\MessageReceiver;