Merge pull request #121 from astahovn/astahovn-patch-constant
Using self descriptional constant
This commit is contained in:
commit
7d09e3bd23
@ -13,7 +13,7 @@ $channel->queue_declare('task_queue', false, true, false, false);
|
||||
$data = implode(' ', array_slice($argv, 1));
|
||||
if(empty($data)) $data = "Hello World!";
|
||||
$msg = new AMQPMessage($data,
|
||||
array('delivery_mode' => 2) # make message persistent
|
||||
array('delivery_mode' => AMQPMessage::DELIVERY_MODE_PERSISTENT)
|
||||
);
|
||||
|
||||
$channel->basic_publish($msg, '', 'task_queue');
|
||||
|
Loading…
Reference in New Issue
Block a user