ForkCMS\Bundle\InstallerBundle\Controller\InstallerController::step4Action PHP Method

step4Action() public method

public step4Action ( Request $request ) : RedirectResponse | Response
$request Symfony\Component\HttpFoundation\Request
return 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()));
    }