PHP Class Sylius\Bundle\ShopBundle\Controller\LocaleSwitchController

Author: Arkadiusz Krakowiak ([email protected])
Author: Kamil Kokot ([email protected])
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templatingEngine, Sylius\Component\Locale\Context\LocaleContextInterface $localeContext, Sylius\Component\Locale\Provider\LocaleProviderInterface $localeProvider, Sylius\Component\Core\Locale\Handler\LocaleChangeHandlerInterface $localeChangeHandler )
renderAction ( ) : Response
switchAction ( Request $request, string $code ) : Response

Method Details

__construct() public method

public __construct ( Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templatingEngine, Sylius\Component\Locale\Context\LocaleContextInterface $localeContext, Sylius\Component\Locale\Provider\LocaleProviderInterface $localeProvider, Sylius\Component\Core\Locale\Handler\LocaleChangeHandlerInterface $localeChangeHandler )
$templatingEngine Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$localeContext Sylius\Component\Locale\Context\LocaleContextInterface
$localeProvider Sylius\Component\Locale\Provider\LocaleProviderInterface
$localeChangeHandler Sylius\Component\Core\Locale\Handler\LocaleChangeHandlerInterface

renderAction() public method

public renderAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

switchAction() public method

public switchAction ( Request $request, string $code ) : Response
$request Symfony\Component\HttpFoundation\Request
$code string
return Symfony\Component\HttpFoundation\Response