/** * Removes cart. * * @param \Jigoshop\Entity\Cart $cart Cart to remove. */ public function remove(Cart $cart) { $session = $this->session->getField(self::CART); if (isset($session[$cart->getId()])) { unset($session[$cart->getId()]); $this->session->setField(self::CART, $session); } }
/** * Removes cart. * * @param Cart $cart Cart to remove. */ public function remove(Cart $cart) { unset($this->objects[$cart->getId()]); $this->service->remove($cart); }