|
@@ 110-112 (lines=3) @@
|
| 107 |
|
$this->output->section(sprintf('Fetched rates for source: "%s"', $source)); |
| 108 |
|
$this->output->table(['Currency code', 'Rate type', 'Value'], $rows); |
| 109 |
|
|
| 110 |
|
if (!$input->getOption('silent')) { |
| 111 |
|
$this->eventDispatcher->dispatch(FetchEvents::SUCCESS, new GenericEvent($sources, ['rates' => $rates])); |
| 112 |
|
} |
| 113 |
|
} catch (\Exception $e) { |
| 114 |
|
$this->output->error(sprintf('Could not fetch rates from source "%s".', $source)); |
| 115 |
|
$errors = true; |
|
@@ 117-119 (lines=3) @@
|
| 114 |
|
$this->output->error(sprintf('Could not fetch rates from source "%s".', $source)); |
| 115 |
|
$errors = true; |
| 116 |
|
|
| 117 |
|
if (!$input->getOption('silent')) { |
| 118 |
|
$this->eventDispatcher->dispatch(FetchEvents::ERROR, new GenericEvent($sources, ['exception' => $e])); |
| 119 |
|
} |
| 120 |
|
} |
| 121 |
|
} |
| 122 |
|
|