diff --git a/typo3/install/index.php b/typo3/install/index.php index 25b996a526e7f07aaaa49cc333d863f6b0078773..d1dee35ebd647c0759297d616baae8ac844dbe1d 100644 --- a/typo3/install/index.php +++ b/typo3/install/index.php @@ -13,11 +13,13 @@ call_user_func(function () { // This way we do not need to copy all the code here to cope with correct location header URL generation correctly // as those two classes can already correctly deal with all known edge cases. - require __DIR__ . '/../../vendor/autoload.php'; + $classLoader = require __DIR__ . '/../../vendor/autoload.php'; // We ensure that possible notices from Core code do not kill our redirect due to PHP output error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED)); // @deprecated in 9.x will be removed in 10.0 + \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(2, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_INSTALL); + \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, true); \TYPO3\CMS\Core\Utility\HttpUtility::redirect('../install.php', \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_307); });