Skip to content

Commit

Permalink
Fix command initialisation in service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaud Fabre committed Dec 6, 2016
1 parent ae83862 commit 5081532
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/WorkerProvider/WorkerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ public function register(Application $app)
});

$app['alchemy_worker.commands.run_dispatcher_command'] = $app->share(function (Application $app) {
return new DispatchingConsumerCommand($app['alchemy_worker.message_dispatcher']);
return new DispatchingConsumerCommand(
$app['alchemy_worker.message_dispatcher'],
$app['alchemy_worker.worker_invoker']
);
});

$app['alchemy_worker.commands.run_worker_command'] = $app->share(function (Application $app) {
Expand Down

0 comments on commit 5081532

Please sign in to comment.