public function navAction()
{
$currencies = $this->get('elcodi.repository.currency')->findBy(['enabled' => true]);
if (empty($currencies)) {
throw new LogicException('There are not currencies, you must configure at least one');
}
$activeCurrency = $this->get('elcodi.wrapper.currency')->get();
return $this->renderTemplate('Subpages:currency-nav.html.twig', ['currencies' => $currencies, 'activeCurrency' => $activeCurrency]);
}