initializeView($request); $view->assign('enableInstallToolPath', EnableFileService::getStaticLocationForInstallToolEnableFileDirectory()); return new JsonResponse([ 'success' => true, 'html' => $view->render('Login/ShowEnableInstallToolFile'), ]); } /** * Render login view */ public function showLoginAction(ServerRequestInterface $request): ResponseInterface { $formProtection = $this->formProtectionFactory->createFromRequest($request); $view = $this->initializeView($request); $view->assignMultiple([ 'loginToken' => $formProtection->generateToken('installTool', 'login'), 'installToolEnableFilePermanent' => EnableFileService::isInstallToolEnableFilePermanent(), 'configFile' => $this->configurationManager->getSystemConfigurationFileLocation(true), ]); return new JsonResponse([ 'success' => true, 'html' => $view->render('Login/ShowLogin'), ]); } }