public function removeAction($code) { /** * @var CartInterface $cart */ $cart = $this->get('elcodi.wrapper.cart')->get(); $this->get('elcodi.manager.cart_coupon')->removeCouponByCode($cart, $code); return $this->redirectToRoute('store_cart_view'); }