Skip to content

Commit

Permalink
fix worker command binding
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 23, 2019
1 parent 6f37742 commit 3b53310
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/HorizonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public function register()
define('HORIZON_PATH', realpath(__DIR__.'/../'));
}

$this->app->bind(Console\WorkCommand::class, function ($app) {
return new Console\WorkCommand($app['queue.worker'], $app['cache.store']);
});

$this->configure();
$this->offerPublishing();
$this->registerServices();
Expand Down

0 comments on commit 3b53310

Please sign in to comment.