public authenticationStepAction ( ) : |
||
return |
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'));
}