/** * Guard method checking typo3conf/ENABLE_INSTALL_TOOL * * Checking ENABLE_INSTALL_TOOL validity is simple: * As soon as there is a typo3conf directory at all (not step 1 of "first install"), * the file must be there and valid in order to proceed. * * @return void */ protected function outputInstallToolNotEnabledMessageIfNeeded() { if (!$this->isInstallToolAvailable()) { if (!EnableFileService::isFirstInstallAllowed() && !is_dir(PATH_typo3conf)) { /** @var \TYPO3\CMS\Install\Controller\Action\ActionInterface $action */ $action = $this->objectManager->get(\TYPO3\CMS\Install\Controller\Action\Common\AccessNotAllowedAction::class); $action->setAction('accessNotAllowed'); } else { /** @var \TYPO3\CMS\Install\Controller\Action\ActionInterface $action */ $action = $this->objectManager->get(\TYPO3\CMS\Install\Controller\Action\Common\InstallToolDisabledAction::class); $action->setAction('installToolDisabled'); } $action->setController('common'); $this->output($action->handle()); } }
/** * Guard method checking typo3conf/ENABLE_INSTALL_TOOL * * Checking ENABLE_INSTALL_TOOL validity is simple: * As soon as there is a typo3conf directory at all (not step 1 of "first install"), * the file must be there and valid in order to proceed. * * @return void */ protected function outputInstallToolNotEnabledMessageIfNeeded() { if (!$this->isInstallToolAvailable()) { if (!EnableFileService::isFirstInstallAllowed() && !\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->checkIfEssentialConfigurationExists()) { /** @var \TYPO3\CMS\Install\Controller\Action\ActionInterface $action */ $action = $this->objectManager->get(\TYPO3\CMS\Install\Controller\Action\Common\FirstInstallAction::class); $action->setAction('firstInstall'); } else { /** @var \TYPO3\CMS\Install\Controller\Action\ActionInterface $action */ $action = $this->objectManager->get(\TYPO3\CMS\Install\Controller\Action\Common\InstallToolDisabledAction::class); $action->setAction('installToolDisabled'); } $action->setController('common'); $this->output($action->handle()); } }