New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic transport creation #31373
Comments
Then can you explain what you mean by "creating queues dynamically"? $transport = $transportFactory->createTransport('dsn');
$transport->setup(); It is implemented by all built-in transports. |
What i need is to create several queues with different names, something like this:
Like in https://packagist.org/packages/bunny/bunny library |
The low-level AmqpFactory seems to be what you are looking for. |
Thanks, you are absolutely right about low-level AmqpFactory. I used another library for my needs. I wish The Messenger had such opportunity, but its great even without it) |
@DruGity Ideally queues are created by consumers, so for each "dynamic" queue you need to create a consumer with correct bindings and publisher just uses AmqpStamp with binding and publish should declare only exchange. |
What i need is to create several queues right in code with different names, not in
messenger.yaml
. I have tried to do it with TransportFactory, but it is not what i need.So the question is - Can i create queues dynamically? Does such opportunity exists in Messenger component?
The text was updated successfully, but these errors were encountered: