Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 695 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 695 Bytes

TacticianAMQPBundle Example

This is a very basic example of the TacticianAMQPBundle usage.

Requirements

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

Running

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.