2 namespace TYPO3\CMS\Install\Controller;
51 $this->formProtection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
61 if ($this->enableFileService->checkInstallToolEnableFile()) {
62 $this->
redirect(
'sysext/install/Start/Install.php?install[context]=backend');
64 $this->
forward(
'showEnableInstallToolButton');
75 $token = $this->formProtection->generateToken(
'installTool');
76 $this->view->assign(
'installToolEnableToken', $token);
87 if (!$this->formProtection->validateToken($installToolEnableToken,
'installTool')) {
88 throw new \RuntimeException(
'Given form token was not valid', 1369161225);
90 $this->enableFileService->createInstallToolEnableFile();
101 \TYPO3\CMS\Core\Utility\HttpUtility::redirect($uri);