Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Dec 7, 2024
1 parent 94d8540 commit 14401e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Provider/AdapterFactoryQueueProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use function sprintf;

/**
* Queue provider based on adapter definitions.
* This queue provider create new queue objects based on adapter definitions.
*
* @see https://github.com/yiisoft/definitions/
* @see https://github.com/yiisoft/factory/
Expand All @@ -29,9 +29,9 @@ final class AdapterFactoryQueueProvider implements QueueProviderInterface
private readonly StrictFactory $factory;

/**
* @param QueueInterface $baseQueue Base queue to use for creating queues.
* @param array $definitions Definitions to create adapters with indexed by channel names.
* @param ContainerInterface|null $container Container to use for resolving dependencies.
* @param QueueInterface $baseQueue Base queue for queues creation.
* @param array $definitions Adapter definitions indexed by channel names.
* @param ContainerInterface|null $container Container to use for dependencies resolving.
* @param bool $validate If definitions should be validated when set.
*
* @psalm-param array<string, mixed> $definitions
Expand All @@ -52,7 +52,7 @@ public function __construct(

public function get(string $channel): QueueInterface
{
$queue = $this->getOrTryCreate($channel);
$queue = $this->getOrTryToCreate($channel);
if ($queue === null) {
throw new ChannelNotFoundException($channel);
}
Expand All @@ -67,7 +67,7 @@ public function has(string $channel): bool
/**
* @throws InvalidQueueConfigException
*/
private function getOrTryCreate(string $channel): QueueInterface|null
private function getOrTryToCreate(string $channel): QueueInterface|null
{
if (array_key_exists($channel, $this->queues)) {
return $this->queues[$channel];
Expand Down

0 comments on commit 14401e1

Please sign in to comment.