TYPO3 CMS  TYPO3_7-6
Install.php
Go to the documentation of this file.
1 <?php
2 /*
3  * This file is part of the TYPO3 CMS project.
4  *
5  * It is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License, either version 2
7  * of the License, or any later version.
8  *
9  * For the full copyright and license information, please read the
10  * LICENSE.txt file that was distributed with this source code.
11  *
12  * The TYPO3 project - inspiring people to share!
13  */
14 
96 /*
97  * This check avoids a parse error "unexpected 'class'" for users installing TYPO3 CMS 7
98  * on PHP 5.4. Without it the redirect to the install tool does not work.
99  * @see https://forge.typo3.org/issues/64504
100  */
101 if (version_compare(PHP_VERSION, '5.5.0', '<')) {
102  die('TYPO3 CMS requires PHP 5.5 or above');
103 }
104 
105 // set up bare minimum application: class loader, LocalConfiguration, but no extensions and such
106 call_user_func(function () {
107  $classLoader = require __DIR__ . '/../../../../vendor/autoload.php';
108  (new \TYPO3\CMS\Install\Http\Application($classLoader))->run();
109 });