Vinelab / bowler

RabbitMQ wrapper for Laravel
MIT License
45 stars 9 forks source link

Add Bowler config file #50

Closed adiachenko closed 5 years ago

adiachenko commented 5 years ago

This PR introduces Bowler configuration file, that you may optionally publish to your app configuration directory. You no longer need to manually dump stuff into your config/queue.php file.

The changes were motivated by #49 were we introduced lifecycle hooks. We decided to suppress errors that are thrown from a registered callback by default, however it doesn't seem very nice to force users into this behavior. Instead, we'd like to offer them a choice how to handle errors which sparked the idea of config management.

Note that this is a technically a breaking change. The new configuration assumes the following env variables:

RABBITMQ_HOST=localhost
RABBITMQ_PORT=5672
RABBITMQ_USERNAME=guest
RABBITMQ_PASSWORD=guest

The PR includes changes to #49, however you should consider reviewing them separately. See commit https://github.com/Vinelab/bowler/pull/50/commits/1b036e44b740348b44e4adc1c8daec126b28b045