This is a very basic example of the TacticianAMQPBundle usage.
Make sure you have RabbitMQ installed or edit app/config/config.yml
to point to you RabbitMQ server.
No you only need to install the dev dependencies of the bundle:
cd /my/path/to/TacticianAMQPBundle
composer install
To run the example you need to first declare the exchanges and queues using:
php app/console amqp:declare
After this you can start the webserver (php -S 0.0.0.0:8000 -t web/
) and go to the url localhost:8000
.
At the same time you can run php app/console amqp:consume main direct_queue
to start consuming the commands.