Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3911949
D336.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
832 B
Referenced Files
None
Subscribers
None
D336.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D336: Allow to set an exchange as durable
Attached
Detach File
Event Timeline
Log In to Comment