/**
  * @return JsonResponse
  */
 public function indexAction()
 {
     $currencies = $this->currencyRepository->getActivatedCurrencies();
     $normalizedCurrencies = [];
     foreach ($currencies as $currency) {
         $normalizedCurrencies[$currency->getCode()] = ['code' => $currency->getCode()];
     }
     return new JsonResponse($normalizedCurrencies);
 }