|
@@ 99-104 (lines=6) @@
|
| 96 |
|
$availableEvents = $this->collection->getEventNames(); |
| 97 |
|
$availableProjectors = $this->projectorCollection->getProjectorNames(); |
| 98 |
|
|
| 99 |
|
if ($input->getOption(self::OPTION_LIST_EVENTS)) { |
| 100 |
|
$output->writeln('<info>The following events can be replayed:</info>'); |
| 101 |
|
$output->writeln(!empty($availableEvents) ? $availableEvents : 'None.'); |
| 102 |
|
|
| 103 |
|
return; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
if ($input->getOption(self::OPTION_LIST_PROJECTORS)) { |
| 107 |
|
$output->writeln('<info>Events can be replayed for the following projectors:</info>'); |
|
@@ 106-111 (lines=6) @@
|
| 103 |
|
return; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
if ($input->getOption(self::OPTION_LIST_PROJECTORS)) { |
| 107 |
|
$output->writeln('<info>Events can be replayed for the following projectors:</info>'); |
| 108 |
|
$output->writeln(!empty($availableProjectors) ? $availableProjectors : 'None.'); |
| 109 |
|
|
| 110 |
|
return; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
if (count($availableProjectors) === 0) { |
| 114 |
|
$output->writeln('<error>There are no projectors configured to reply events for</error>'); |