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

authenticationStepAction() public method

Order process step 1: retrieve the customer associated with the logged in user if there's one or create an empty customer and put it in the basket.
public authenticationStepAction ( ) : RedirectResponse
return Symfony\Component\HttpFoundation\RedirectResponse
    public function authenticationStepAction()
    {
        $customer = $this->get('sonata.customer.selector')->get();
        $basket = $this->get('sonata.basket');
        $basket->setCustomer($customer);
        $this->get('sonata.basket.factory')->save($basket);
        return new RedirectResponse($this->generateUrl('sonata_basket_delivery_address'));
    }