Skip to content

Conversation

@viktorprogger
Copy link
Contributor

@viktorprogger viktorprogger commented Feb 1, 2026

Q A
Is bugfix? ✔️
New feature?
Breaks BC? ✔️
Tests pass? ✔️
Fixed issues #255

@viktorprogger viktorprogger requested review from samdark and vjik February 1, 2026 16:52
@viktorprogger viktorprogger marked this pull request as draft February 1, 2026 16:53
*/
final class StubQueue implements QueueInterface
{
private string $name = 'default';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move it to constructor.

public function get(string|BackedEnum $queueName): QueueInterface
{
return $this->baseQueue->withAdapter($this->baseAdapter->withChannel($channel));
return $this->baseQueue->withAdapter($this->baseAdapter->withChannel($queueName), $queueName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queue name cannot used as a channel name. These are not related things in any way.

'handlers' => [],
'channels' => [
QueueProviderInterface::DEFAULT_CHANNEL => AdapterInterface::class,
'queues' => [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"queues" define adapters, not queues. It's unexpected,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is correct; it's

queue1 => adapter1, channel 1
queue2 => adapter1, channel 2
queue3 => adapter2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants