We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ca7c34 commit 6ff2a1dCopy full SHA for 6ff2a1d
php-amqp/new_task.php
@@ -33,7 +33,7 @@
33
$message = "Hello World!";
34
35
$exchange = new AMQPExchange($channel);
36
-$exchange->publish($message, $routing_key);
+$exchange->publish($message, $routing_key, AMQP_NOPARAM, array('delivery_mode' => 2));
37
38
echo " [x] Sent {$message}", PHP_EOL;
39
0 commit comments