From 38354f7532baff4b2d2d35a4d3393406c39ce5b1 Mon Sep 17 00:00:00 2001 From: hochgenug Date: Wed, 18 Dec 2019 15:53:43 +0100 Subject: [PATCH] Replace the Magento 1 code into the Magento 2 documentation --- docs/magento2/quick_tour.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/magento2/quick_tour.md b/docs/magento2/quick_tour.md index a14836b33..5063ab56c 100644 --- a/docs/magento2/quick_tour.md +++ b/docs/magento2/quick_tour.md @@ -61,13 +61,13 @@ To consume messages you have to define a processor class first: namespace Acme\Module\Helper\Async; -use Interop\Queue\Context; -use Interop\Queue\Message; -use Interop\Queue\Processor; +use Interop\Queue\PsrContext; +use Interop\Queue\PsrMessage; +use Interop\Queue\PsrProcessor; class Foo implements Processor { - public function process(Message $message, Context $context) + public function process(PsrMessage $message, PsrContext $context) { // do job // $message->getBody() -> 'payload' @@ -83,7 +83,7 @@ than subscribe it to a topic or several topics: ```xml - + @@ -91,7 +91,7 @@ than subscribe it to a topic or several topics: a_topic - acme/async_foo + Acme\Module\Helper\Async\foo