Skip to content
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

ConsumerCommand can use ONLY consumers with default connection #26

Open
petrnemec opened this issue Nov 2, 2015 · 3 comments
Open

ConsumerCommand can use ONLY consumers with default connection #26

petrnemec opened this issue Nov 2, 2015 · 3 comments
Labels

Comments

@petrnemec
Copy link

No description provided.

@fprochazka
Copy link
Member

Can you elaborate on the problem please? Like, what did you wanna do, why it broke, how you propose to fix it?

@petrnemec
Copy link
Author

I need to run a consumer via CLI which has different than a default connection.
The problem is that BaseConsumerCommand is getting dependency of Kdyby\RabbitMq\Connection, which is only the default one and it does not include consumers/producers that are defined under different connection.
I would recommend to create some kind of Container or Registry (like Kdyby\Doctrine has) that is going to include references to all consumers/producers and use it instead of Connection.

https://github.com/videlalvaro/RabbitMqBundle/blob/master/Command/BaseConsumerCommand.php

@fprochazka fprochazka added the bug label May 20, 2017
@fprochazka
Copy link
Member

Related #42, #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants