Skip to content

Commit

Permalink
Move the addon registration into the bootAddon method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassiewertsen authored Mar 2, 2023
1 parent c4d4294 commit a3bf4de
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@

class ServiceProvider extends AddonServiceProvider
{
public function boot()
{
parent::boot();

$this->bootFileFailedJobProvider();
}

private function bootFileFailedJobProvider(): self
public function bootAddon()
{
if (config('queue.failed.driver') === 'file') {
$this->app->singleton('queue.failer', function ($app) {
Expand All @@ -23,4 +16,5 @@ private function bootFileFailedJobProvider(): self

return $this;
}

}

0 comments on commit a3bf4de

Please sign in to comment.