From fed6a1c311a315c60d531e6caf6ec725f9eb77a0 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Fri, 1 Nov 2024 12:33:38 +0300 Subject: [PATCH] improve --- src/Provider/FactoryQueueProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Provider/FactoryQueueProvider.php b/src/Provider/FactoryQueueProvider.php index ee914eaf..81db8da3 100644 --- a/src/Provider/FactoryQueueProvider.php +++ b/src/Provider/FactoryQueueProvider.php @@ -24,7 +24,7 @@ final class FactoryQueueProvider implements QueueProviderInterface * @throws InvalidConfigException */ public function __construct( - private readonly array $definitions = [], + array $definitions = [], ?ContainerInterface $container = null, bool $validate = true, ) { @@ -42,7 +42,7 @@ public function get(string $channel): QueueInterface public function has(string $channel): bool { - return array_key_exists($channel, $this->definitions); + return $this->factory->has($channel); } /**