ForkCMS\Bundle\InstallerBundle\Controller\InstallerController::step4Action PHP 메소드

step4Action() 공개 메소드

public step4Action ( Request $request ) : RedirectResponse | Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response
    public function step4Action(Request $request)
    {
        $this->checkInstall();
        // show database form
        $form = $this->createForm(new DatabaseType(), $this->getInstallationData($request));
        $handler = new DatabaseHandler();
        if ($handler->process($form, $request)) {
            return $this->redirect($this->generateUrl('install_step5'));
        }
        return $this->render('ForkCMSInstallerBundle:Installer:step4.html.twig', array('form' => $form->createView()));
    }