Aimeos\ShopBundle\Service\Context::addSession PHP Method

addSession() protected method

Adds the session object to the context
protected addSession ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
return Aimeos\MShop\Context\Item\Iface Modified context object
    protected function addSession(\Aimeos\MShop\Context\Item\Iface $context)
    {
        $session = new \Aimeos\MW\Session\Symfony2($this->container->get('session'));
        $context->setSession($session);
        return $context;
    }