initializeStandaloneView($request, 'Login/ShowEnableInstallToolFile.html'); return new JsonResponse([ 'success' => true, 'html' => $view->render(), ]); } /** * Render login view * * @param ServerRequestInterface $request * @return ResponseInterface */ public function showLoginAction(ServerRequestInterface $request): ResponseInterface { $formProtection = FormProtectionFactory::get(InstallToolFormProtection::class); $view = $this->initializeStandaloneView($request, 'Login/ShowLogin.html'); $view->assignMultiple([ 'siteName' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'], 'loginToken' => $formProtection->generateToken('installTool', 'login'), 'installToolEnableFilePermanent' => EnableFileService::isInstallToolEnableFilePermanent(), ]); return new JsonResponse([ 'success' => true, 'html' => $view->render(), ]); } }