Skip to content

Commit

Permalink
Merge pull request #999 from hochgenug/update-magento2-docs
Browse files Browse the repository at this point in the history
Replace the Magento 1 code into the Magento 2 documentation
  • Loading branch information
makasim authored Dec 18, 2019
2 parents 93cfb73 + 38354f7 commit 1cb0685
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/magento2/quick_tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -83,15 +83,15 @@ than subscribe it to a topic or several topics:


```xml
<!-- app/etc/local.xml -->
<!-- app/code/Acme/Module/etc/config.xml -->

<config>
<default>
<enqueue>
<processors>
<foo-processor>
<topic>a_topic</topic>
<helper>acme/async_foo</helper>
<helper>Acme\Module\Helper\Async\foo</helper>
</foo-processor>
</processors>
</enqueue>
Expand Down

0 comments on commit 1cb0685

Please sign in to comment.