Skip to content

Commit

Permalink
Merge pull request #6 from alchemy-fr/fix/service-provider
Browse files Browse the repository at this point in the history
Fix command initialisation in service provider
  • Loading branch information
aztech-dev authored Dec 6, 2016
2 parents ae83862 + 5081532 commit a4911cc
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 a4911cc

Please sign in to comment.