|
@@ 61-66 (lines=6) @@
|
| 58 |
|
$availableEvents = $eventCollection->getEventNames(); |
| 59 |
|
$availableProjectors = $projectorCollection->getProjectorNames(); |
| 60 |
|
|
| 61 |
|
if ($input->getOption(self::OPTION_LIST_EVENTS)) { |
| 62 |
|
$output->writeln('<info>The following events can be replayed:</info>'); |
| 63 |
|
$output->writeln(!empty($availableEvents) ? $availableEvents : 'None.'); |
| 64 |
|
|
| 65 |
|
return; |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
if ($input->getOption(self::OPTION_LIST_PROJECTORS)) { |
| 69 |
|
$output->writeln('<info>Events can be replayed for the following projectors:</info>'); |
|
@@ 68-73 (lines=6) @@
|
| 65 |
|
return; |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
if ($input->getOption(self::OPTION_LIST_PROJECTORS)) { |
| 69 |
|
$output->writeln('<info>Events can be replayed for the following projectors:</info>'); |
| 70 |
|
$output->writeln(!empty($availableProjectors) ? $availableProjectors : 'None.'); |
| 71 |
|
|
| 72 |
|
return; |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
if (count($availableProjectors) === 0) { |
| 76 |
|
$output->writeln('<error>There are no projectors configured to reply events for</error>'); |