[FEATURE] Support pecl-memcached in MemcachedBackend
[Packages/TYPO3.CMS.git] / index.php
index e24c525..0627918 100644 (file)
--- a/index.php
+++ b/index.php
  * @see https://forge.typo3.org/issues/64504
  */
 if (version_compare(PHP_VERSION, '5.5.0', '<')) {
-       die('TYPO3 CMS requires PHP 5.5 or above');
+    die('TYPO3 CMS requires PHP 5.5 or above');
 }
 
-define('TYPO3_MODE', 'FE');
-
-require __DIR__ . '/typo3/sysext/core/Classes/Core/Bootstrap.php';
-\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->run()->shutdown();
+// Set up the application for the Frontend
+call_user_func(function () {
+    $classLoader = require rtrim(realpath(__DIR__ . '/typo3'), '\\/') . '/../vendor/autoload.php';
+    (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
+});