Page MenuHomeDevCentral

D336.id799.diff
No OneTemporary

D336.id799.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
Mon, Apr 21, 19:49 (13 m, 31 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2589048
Default Alt Text
D336.id799.diff (832 B)

Event Timeline