Eccube\Controller\CartController::buystep PHP Method

buystep() public method

カートをロック状態に設定し、購入確認画面へ遷移する.
public buystep ( Application $app, Request $request ) : RedirectResponse | Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response
    public function buystep(Application $app, Request $request)
    {
        // FRONT_CART_BUYSTEP_INITIALIZE
        $event = new EventArgs(array(), $request);
        $app['eccube.event.dispatcher']->dispatch(EccubeEvents::FRONT_CART_BUYSTEP_INITIALIZE, $event);
        $app['eccube.service.cart']->lock();
        $app['eccube.service.cart']->save();
        // FRONT_CART_BUYSTEP_COMPLETE
        $event = new EventArgs(array(), $request);
        $app['eccube.event.dispatcher']->dispatch(EccubeEvents::FRONT_CART_BUYSTEP_COMPLETE, $event);
        if ($event->hasResponse()) {
            return $event->getResponse();
        }
        return $app->redirect($app->url('shopping'));
    }