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();
}