Skip to content

Commit 39f0a8b

Browse files
authored
fix: remove option to use a custom config file via service (#59)
1 parent ce601bc commit 39f0a8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Config/Services.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020

2121
class Services extends BaseService
2222
{
23-
public static function queue(?QueueConfig $config = null, $getShared = true): QueueInterface
23+
public static function queue($getShared = true): QueueInterface
2424
{
2525
if ($getShared) {
26-
return static::getSharedInstance('queue', $config);
26+
return static::getSharedInstance('queue');
2727
}
2828

29-
/** @var QueueConfig|null $config */
30-
$config ??= config('Queue');
29+
/** @var QueueConfig $config */
30+
$config = config('Queue');
3131

3232
return (new Queue($config))->init();
3333
}

0 commit comments

Comments
 (0)