DoSomething/messagebroker-phplib — pull request #6 by jonuy (2014-03-07 18:38:15+00:00)
Title: Queue, exchange, and consume options configurable through MessageBroker ctor param

@DeeZone here's a thought for how queue, exchange, and consume options can be set. They'd no longer be hardcoded in the library, but controlled by the producers and consumers. I imagine the producers and consumers would have to do something like:

```
$config = array(
// Routing key
'routingKey' => 'mailchimp-unsubscribe',

// Consume options
'consume' => array(
'consumer_tag' => '',
'no_local' => FALSE,
'no_ack' => FALSE,
'exclusive' => FALSE,
'nowait' => FALSE,
),

// Exchange options
'exchange' => array(
'name' => 'direct_mailchimp_webhooks',
'type' => 'direct',
'passive' => FALSE,
'durable' => TRUE,
'auto_delete' => FALSE,
),

// Queue options
'queue' => array(
'name' => 'mailchimp-unsubscribe-queue',
'passive' => FALSE,
'durable' => TRUE,
'exclusive' => FALSE,
'auto_delete' => FALSE,
),
);

$mb = new MessageBroker($credentials, $config);
```

Those options can alternatively be pulled from the mb-config.inc.

Also, if this PR goes through, it'll bump the version up to 0.1.10.