Skip to content

Commit af9381c

Browse files
committed
[doc][skip ci] update doc.
1 parent 7068312 commit af9381c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/magento/quick_tour.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ composer require "magento-hackathon/magento-composer-installer:~3.0"
1414
composer require "enqueue/magento-enqueue:*@dev" "enqueue/amqp-ext"
1515
```
1616

17+
_**Note**: You could use not only AMQP transport but any other [available](../transport)._
18+
1719
## Configuration
1820

1921
At this stage we have configure the Enqueue extension in Magento backend.

docs/magento2/quick_tour.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ To send a message you have to take enqueue helper and call `send` method.
3434

3535
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
3636
$enqueueManager = $objectManager->create('Enqueue\Enqueue\Model\EnqueueManager');
37-
$enqueueManager->send('a_topic', 'aMessage');
37+
$enqueueManager->sendEvent('a_topic', 'aMessage');
38+
39+
// or a command with a possible reply
40+
$reply = $enqueueManager->sendCommand('a_topic', 'aMessage', true);
41+
42+
$replyMessage = $reply->receive(5000); // wait for 5 sec
3843
```
3944

4045
## Message Consumption

0 commit comments

Comments
 (0)