Skip to content

Commit

Permalink
update deps. make it work with enqueue 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Aug 16, 2017
1 parent 83f4734 commit bdcab50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"php": "^7",
"makasim/values": "@dev",
"symfony/console": "^3.1",
"graphp/graphviz": "^0.2.1",
"ramsey/uuid": "^3"
},
"suggest": {
"enqueue/enqueue": "Install the Enqueue library to be able to process tasks async (by using MQ).",
"enqueue/enqueue": "^0.7 Install the Enqueue library to be able to process tasks async (by using MQ).",
"graphp/graphviz": "^0.2 If you want to visualize graphs",
"makasim/yadm": "Install the Yadm library to be able to persist store in MongoDB"
},
"extra": {
Expand Down
4 changes: 2 additions & 2 deletions docs/parallel-execution-with-enqueue.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ use Formapro\Pvm\ProcessEngine;
use Formapro\Pvm\ProcessStorage;
use Enqueue\SimpleClient\SimpleClient;
use Formapro\Pvm\Enqueue\HandleAsyncTransitionProcessor;
use Enqueue\Psr\PsrMessage;
use Enqueue\Psr\PsrContext;
use Interop\Queue\PsrMessage;
use Interop\Queue\PsrContext;
use Enqueue\Client\Config;

include __DIR__.'/config.php';
Expand Down
2 changes: 1 addition & 1 deletion src/Enqueue/AsyncTransition.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function transition(array $tokens)
foreach ($tokens as $token) {
/** @var Token $token */

$this->producer->send(HandleAsyncTransitionProcessor::TOPIC, [
$this->producer->sendCommand(HandleAsyncTransitionProcessor::COMMAND, [
'process' => $token->getProcess()->getId(),
'token' => $token->getId(),
]);
Expand Down
6 changes: 3 additions & 3 deletions src/Enqueue/HandleAsyncTransitionProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
use Enqueue\Client\CommandSubscriberInterface;
use Enqueue\Consumption\QueueSubscriberInterface;
use Enqueue\Consumption\Result;
use Enqueue\Psr\PsrContext;
use Enqueue\Psr\PsrMessage;
use Enqueue\Psr\PsrProcessor;
use Interop\Queue\PsrContext;
use Interop\Queue\PsrMessage;
use Interop\Queue\PsrProcessor;
use Enqueue\Util\JSON;
use Formapro\Pvm\Process;
use Formapro\Pvm\ProcessEngine;
Expand Down

0 comments on commit bdcab50

Please sign in to comment.