Sonata\BasketBundle\Controller\BasketController::resetAction PHP Method

resetAction() public method

Resets (empties) the basket.
public resetAction ( ) : RedirectResponse
return Symfony\Component\HttpFoundation\RedirectResponse
    public function resetAction()
    {
        $this->get('sonata.basket.factory')->reset($this->get('sonata.basket'));
        return new RedirectResponse($this->generateUrl('sonata_basket_index'));
    }