Eccube\Service\CartService::__construct PHP Method

__construct() public method

public __construct ( Application $app )
$app Eccube\Application
    public function __construct(\Eccube\Application $app)
    {
        $this->app = $app;
        $this->session = $app['session'];
        $this->entityManager = $app['orm.em'];
        if ($this->session->has('cart')) {
            $this->cart = $this->session->get('cart');
        } else {
            $this->cart = new \Eccube\Entity\Cart();
        }
        $this->loadProductClassFromCart();
        $this->BaseInfo = $app['eccube.repository.base_info']->get();
    }