PHP Class Sylius\Bundle\ShopBundle\Controller\CurrencySwitchController

Author: Paweł Jędrzejewski ([email protected])
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templatingEngine, Sylius\Component\Currency\Context\CurrencyContextInterface $currencyContext, Sylius\Component\Currency\Provider\CurrencyProviderInterface $currencyProvider, Sylius\Component\Core\Currency\Handler\CurrencyChangeHandlerInterface $currencyChangeHandler )
renderAction ( ) : Response
switchAction ( Request $request, string $code ) : Response

Method Details

__construct() public method

public __construct ( Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templatingEngine, Sylius\Component\Currency\Context\CurrencyContextInterface $currencyContext, Sylius\Component\Currency\Provider\CurrencyProviderInterface $currencyProvider, Sylius\Component\Core\Currency\Handler\CurrencyChangeHandlerInterface $currencyChangeHandler )
$templatingEngine Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$currencyContext Sylius\Component\Currency\Context\CurrencyContextInterface
$currencyProvider Sylius\Component\Currency\Provider\CurrencyProviderInterface
$currencyChangeHandler Sylius\Component\Core\Currency\Handler\CurrencyChangeHandlerInterface

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