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