@@ -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 | } |
@@ -5,21 +5,21 @@ |
||
5 | 5 | class AmqpPartsHolder |
6 | 6 | { |
7 | 7 | /** @var array */ |
8 | - protected $parts; |
|
8 | + protected $parts; |
|
9 | 9 | |
10 | - public function __construct() |
|
11 | - { |
|
12 | - $this->parts = array(); |
|
13 | - } |
|
10 | + public function __construct() |
|
11 | + { |
|
12 | + $this->parts = array(); |
|
13 | + } |
|
14 | 14 | |
15 | - public function addPart(string $type, BaseAmqp $part): void |
|
16 | - { |
|
17 | - $this->parts[$type][] = $part; |
|
18 | - } |
|
15 | + public function addPart(string $type, BaseAmqp $part): void |
|
16 | + { |
|
17 | + $this->parts[$type][] = $part; |
|
18 | + } |
|
19 | 19 | |
20 | - public function getParts(string $type): array |
|
21 | - { |
|
20 | + public function getParts(string $type): array |
|
21 | + { |
|
22 | 22 | $type = (string) $type; |
23 | - return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
24 | - } |
|
23 | + return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
24 | + } |
|
25 | 25 | } |
@@ -34,12 +34,12 @@ |
||
34 | 34 | */ |
35 | 35 | protected $arguments; |
36 | 36 | |
37 | - public function getExchange(): string |
|
37 | + public function getExchange(): string |
|
38 | 38 | { |
39 | 39 | return $this->exchange; |
40 | 40 | } |
41 | 41 | |
42 | - public function setExchange(string $exchange): void |
|
42 | + public function setExchange(string $exchange): void |
|
43 | 43 | { |
44 | 44 | $this->exchange = $exchange; |
45 | 45 | } |