@@ -4,21 +4,21 @@ |
||
| 4 | 4 | |
| 5 | 5 | class AmqpPartsHolder |
| 6 | 6 | { |
| 7 | - protected $parts; |
|
| 7 | + protected $parts; |
|
| 8 | 8 | |
| 9 | - public function __construct() |
|
| 10 | - { |
|
| 11 | - $this->parts = array(); |
|
| 12 | - } |
|
| 9 | + public function __construct() |
|
| 10 | + { |
|
| 11 | + $this->parts = array(); |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | - public function addPart($type, BaseAmqp $part) |
|
| 15 | - { |
|
| 16 | - $this->parts[$type][] = $part; |
|
| 17 | - } |
|
| 14 | + public function addPart($type, BaseAmqp $part) |
|
| 15 | + { |
|
| 16 | + $this->parts[$type][] = $part; |
|
| 17 | + } |
|
| 18 | 18 | |
| 19 | - public function getParts($type) |
|
| 20 | - { |
|
| 19 | + public function getParts($type) |
|
| 20 | + { |
|
| 21 | 21 | $type = (string) $type; |
| 22 | - return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
| 23 | - } |
|
| 22 | + return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
| 23 | + } |
|
| 24 | 24 | } |
@@ -39,12 +39,12 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $msg = new AMQPMessage($msgBody, array('content_type' => 'text/plain', |
| 42 | - 'reply_to' => $this->directReplyTo |
|
| 42 | + 'reply_to' => $this->directReplyTo |
|
| 43 | 43 | ? 'amq.rabbitmq.reply-to' // On direct reply-to mode, use predefined queue name |
| 44 | 44 | : $this->getQueueName(), |
| 45 | - 'delivery_mode' => 1, // non durable |
|
| 46 | - 'expiration' => $expiration*1000, |
|
| 47 | - 'correlation_id' => $requestId)); |
|
| 45 | + 'delivery_mode' => 1, // non durable |
|
| 46 | + 'expiration' => $expiration*1000, |
|
| 47 | + 'correlation_id' => $requestId)); |
|
| 48 | 48 | |
| 49 | 49 | $this->getChannel()->basic_publish($msg, $server, $routingKey); |
| 50 | 50 | |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | protected function configure() |
| 17 | 17 | { |
| 18 | 18 | $this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name') |
| 19 | - ->setDescription('Delete a consumer\'s queue') |
|
| 20 | - ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before deleting'); |
|
| 19 | + ->setDescription('Delete a consumer\'s queue') |
|
| 20 | + ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before deleting'); |
|
| 21 | 21 | |
| 22 | 22 | $this->setName('rabbitmq:delete'); |
| 23 | 23 | } |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | protected function configure() |
| 17 | 17 | { |
| 18 | 18 | $this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name') |
| 19 | - ->setDescription('Purge a consumer\'s queue') |
|
| 20 | - ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging'); |
|
| 19 | + ->setDescription('Purge a consumer\'s queue') |
|
| 20 | + ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging'); |
|
| 21 | 21 | |
| 22 | 22 | $this->setName('rabbitmq:purge'); |
| 23 | 23 | } |
@@ -42,8 +42,8 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $this->getContainer() |
| 45 | - ->get(sprintf('old_sound_rabbit_mq.%s_server', $input->getArgument('name'))) |
|
| 46 | - ->start($amount); |
|
| 45 | + ->get(sprintf('old_sound_rabbit_mq.%s_server', $input->getArgument('name'))) |
|
| 46 | + ->start($amount); |
|
| 47 | 47 | |
| 48 | 48 | return 0; |
| 49 | 49 | } |