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

Command "rabbitmq-supervisor" is not defined #51

Open
iamserjo opened this issue Jul 25, 2018 · 3 comments
Open

Command "rabbitmq-supervisor" is not defined #51

iamserjo opened this issue Jul 25, 2018 · 3 comments
Labels

Comments

@iamserjo
Copy link

I use symphony 4 Flex.
According to the manual I install bundle
composer require phobetor/rabbitmq-supervisor-bundle
Then create file structure

tree var/supervisor/
| |____
| |____dev
| | |____worker
| | |____logs

But when I try to run command bin/console rabbitmq-supervisor

i got error
Command "rabbitmq-supervisor" is not defined.

bin/console shows me all the commands but there is no group rabbitmq-supervisor

What am I doing wrong?

@Phobetor
Copy link
Owner

Hello @iamserjo

If you want to create all the configuration you need to use the command rabbitmq-supervisor:rebuild. Calling it would be something like

bin/console rabbitmq-supervisor:rebuild

rabbitmq-supervisor is the command group. You cannot call it directly. Just the commands inside it.

Best regards
Andy

@iamserjo
Copy link
Author

Hi @Phobetor.
I am saying that rabbitmq-supervisor:rebuild not found in my command list. It even says that group named rabbitmq-supervisor doesn't exist.

Test case for my issue:

creating a demo app
composer create-project symfony/symfony-demo
cd symfony-demo/
installing rabbitmq-supervisor-bundle
composer require phobetor/rabbitmq-supervisor-bundle
trying to run command
bin/console rabbitmq-supervisor:rebuild

Getting error: There are no commands defined in the "rabbitmq-supervisor" namespace.

@sedatsevgili
Copy link

Hi @iamserjo

You should add

\Phobetor\RabbitMqSupervisorBundle\RabbitMqSupervisorBundle::class => ['all' => true]

to your bundles.php. After that, you will be able to run the command. I don't know why this bundle does not register itself automatically after installing via composer.

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

3 participants