From 7094f7f8f745c6b283baab1580e3164b1e68d9eb Mon Sep 17 00:00:00 2001 From: michalsn Date: Thu, 17 Apr 2025 15:03:50 +0200 Subject: [PATCH] fix: remove option to use a custom config file via service --- src/Config/Services.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Config/Services.php b/src/Config/Services.php index 088a2a6..1ca828f 100644 --- a/src/Config/Services.php +++ b/src/Config/Services.php @@ -20,14 +20,14 @@ class Services extends BaseService { - public static function queue(?QueueConfig $config = null, $getShared = true): QueueInterface + public static function queue($getShared = true): QueueInterface { if ($getShared) { - return static::getSharedInstance('queue', $config); + return static::getSharedInstance('queue'); } - /** @var QueueConfig|null $config */ - $config ??= config('Queue'); + /** @var QueueConfig $config */ + $config = config('Queue'); return (new Queue($config))->init(); }