Elcodi\Store\CurrencyBundle\Controller\CurrencyController::navAction PHP Метод

navAction() публичный Метод

Currency navigator
public navAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response Response
    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]);
    }
CurrencyController