Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Nov 1, 2024
1 parent a268694 commit fed6a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Provider/FactoryQueueProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit fed6a1c

Please sign in to comment.