Skip to content

Commit

Permalink
[doc][skip ci] update doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Mar 6, 2018
1 parent 31751d7 commit d8be5bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/magento/quick_tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ composer require "magento-hackathon/magento-composer-installer:~3.0"
composer require "enqueue/magento-enqueue:*@dev" "enqueue/amqp-ext"
```

_**Note**: You could use not only AMQP transport but any other [available](../transport)._

## Configuration

At this stage we have configure the Enqueue extension in Magento backend.
Expand Down
7 changes: 6 additions & 1 deletion docs/magento2/quick_tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ To send a message you have to take enqueue helper and call `send` method.

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$enqueueManager = $objectManager->create('Enqueue\Enqueue\Model\EnqueueManager');
$enqueueManager->send('a_topic', 'aMessage');
$enqueueManager->sendEvent('a_topic', 'aMessage');

// or a command with a possible reply
$reply = $enqueueManager->sendCommand('a_topic', 'aMessage', true);

$replyMessage = $reply->receive(5000); // wait for 5 sec
```

## Message Consumption
Expand Down

0 comments on commit d8be5bf

Please sign in to comment.