Elcodi\Store\CartBundle\Controller\CartController::emptyCartAction PHP Метод

emptyCartAction() публичный Метод

Empty Cart
public emptyCartAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : RedirectResponse
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
Результат Symfony\Component\HttpFoundation\RedirectResponse
    public function emptyCartAction(CartInterface $cart)
    {
        $this->get('elcodi.manager.cart')->emptyLines($cart);
        return $this->redirect($this->generateUrl('store_homepage'));
    }