Elcodi\Store\CartBundle\Controller\CartController::removeCartLineAction PHP Method

removeCartLineAction() public method

Deletes CartLine
public removeCartLineAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface $cartLine ) : RedirectResponse
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
$cartLine Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface Cart Line
return Symfony\Component\HttpFoundation\RedirectResponse
    public function removeCartLineAction(CartInterface $cart, CartLineInterface $cartLine)
    {
        $this->get('elcodi.manager.cart')->removeLine($cart, $cartLine);
        return $this->redirect($this->generateUrl('store_cart_view'));
    }