Skip to content

Commit

Permalink
IgnitionServiceProvider only setup queues when queue is available
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMar committed Jul 13, 2020
1 parent 8b45536 commit b1d4ebb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/IgnitionServiceProvider.php
Expand Up @@ -81,8 +81,11 @@ public function boot()
->registerViewEngines()
->registerHousekeepingRoutes()
->registerLogHandler()
->registerCommands()
->setupQueue($this->app->queue);
->registerCommands();

if ($this->app->bound('queue')) {
$this->setupQueue($this->app->queue);
}

$this->app->make(QueryRecorder::class)->register();
$this->app->make(LogRecorder::class)->register();
Expand Down

0 comments on commit b1d4ebb

Please sign in to comment.