PHP Class Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContext

Author: Anna Walasek ([email protected])
Inheritance: implements Sylius\Component\Order\Context\CartContextInterface
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, string $sessionKeyName, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
getCart ( )

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, string $sessionKeyName, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$sessionKeyName string
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface

getCart() public method

public getCart ( )