Page MenuHomeDevCentral

D336.diff
No OneTemporary

D336.diff

diff --git a/src/AMQPBroker.php b/src/AMQPBroker.php
--- a/src/AMQPBroker.php
+++ b/src/AMQPBroker.php
@@ -130,13 +130,15 @@
*
* @param string $name The exchange name
* @param string $type The exchange type (direct, fanout, topic, headers)
+ * @param bool $durable Indicates if the durable feature should be enabled
*/
- public function setExchangeTarget ($name, $type = 'topic') {
+ public function setExchangeTarget ($name, $type = 'topic',
+ $durable = false) {
$this->targetName = $name;
$this->channel->exchange_declare(
$name,
$type,
- false, false, false // don't autodelete this target
+ false, $durable, false // don't autodelete this target
);
return $this;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 04:34 (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307403
Default Alt Text
D336.diff (832 B)

Event Timeline