Controller/CartController.php
public function resetAction(Request $request)
    {
        $cart = $this->getCart();
        $event = new OrderEvent($cart);
        $this->get('ekyna_order.order.operator')->delete($event, true);
        if (!$event->hasErrors()) {
            $this->addFlash('ekyna_cart.message.reset');
        } else {
            $event->toFlashes($this->getFlashBag());
        }

        return $this->redirectAfterContentChange($request);
    }
public function resetAction(Request $request)
    {
        $cart = $this->getCart();
        $event = new OrderEvent($cart);
        $this->get('ekyna_order.order.operator')->delete($event, true);
        if (!$event->hasErrors()) {
            $this->addFlash('ekyna_cart.message.reset');
        } else {
            $event->toFlashes($this->getFlashBag());
        }

        return $this->redirectAfterContentChange($request);
    }
public function resetAction ( Request $ request ) { $ cart = $ this -> getCart ( ) ; $ event = new OrderEvent ( $ cart ) ; $ this -> get ( 'ekyna_order.order.operator' ) -> delete ( $ event , true ) ; if ( ! $ event -> hasErrors ( ) ) { $ this -> addFlash ( 'ekyna_cart.message.reset' ) ; } else { $ event -> toFlashes ( $ this -> getFlashBag ( ) ) ; } return $ this -> redirectAfterContentChange ( $ request ) ; }
Reset action.

@param Request $request
@return \Symfony\Component\HttpFoundation\RedirectResponse
Reset action .