You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @romkatsu. I remember I've talked to you in PM about that. And we didn't fully understand each other that time. Now I'm ready to clarify the rest. In my opinion the only bug is in docs.
Here the key yii-queue-1 is just an application-defined channel name. And its value, \Yiisoft\Yii\Queue\AMQP\Adapter::class, is a definition of the channel. You can use any definition supported by yiisoft/definitions. In this particular case you just say "Give me the default instance of Adapter::class from the container". To set a different queue name for the amqp adapter, you can use the $adapter->withChannel() method. You can even use a different adapter here (i.e. for redis, or the synchronous one).
What steps will reproduce the problem?
Configure queue
Push message:
What is the expected result?
A queue will be created 'yii-queue-1'
What do you get instead?
A queue has been created with the default name 'yii-queue'
Additional info
There will be no problem if configured like this:
The problem is in the factory, here:
https://github.com/yiisoft/yii-queue/blob/master/src/QueueFactory.php#L89
The text was updated successfully, but these errors were encountered: