From a3bf4debd2e2ac0bde200b98e0b421dfdf37ec5e Mon Sep 17 00:00:00 2001 From: Jonas Siewertsen Date: Thu, 2 Mar 2023 18:40:55 +0100 Subject: [PATCH] Move the addon registration into the bootAddon method. --- src/ServiceProvider.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 7f5311e..f735ca4 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -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) { @@ -23,4 +16,5 @@ private function bootFileFailedJobProvider(): self return $this; } + }