|
@@ 88-98 (lines=11) @@
|
| 85 |
|
$name = $input->getArgument('name'); |
| 86 |
|
|
| 87 |
|
if (null !== $name) { |
| 88 |
|
if (!$input->getOption('force')) { |
| 89 |
|
$question = new ConfirmationQuestion(sprintf( |
| 90 |
|
'<comment>This will remove the %s queue, even if it has messages! Are you sure? </comment>', |
| 91 |
|
$name |
| 92 |
|
)); |
| 93 |
|
$confirmation = $questionHelper->ask($input, $output, $question); |
| 94 |
|
|
| 95 |
|
if (!$confirmation) { |
| 96 |
|
return 0; |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
return $this->destroyQueue($registry, $name); |
| 101 |
|
} |
|
@@ 103-110 (lines=8) @@
|
| 100 |
|
return $this->destroyQueue($registry, $name); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
if (!$input->getOption('force')) { |
| 104 |
|
$question = new ConfirmationQuestion('<comment>This will remove ALL queues, even if they have messages. Are you sure? </comment>'); |
| 105 |
|
$confirmation = $questionHelper->ask($input, $output, $question); |
| 106 |
|
|
| 107 |
|
if (!$confirmation) { |
| 108 |
|
return 0; |
| 109 |
|
} |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
foreach ($registry->all() as $queue) { |
| 113 |
|
$this->destroyQueue($registry, $queue->getName()); |