TYPO3 CMS
TYPO3_6-2
|
Go to the source code of this file.
Variables | |
const | TYPO3_MODE 'BE' |
const | TYPO3_enterInstallScript '1' |
$getPost = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('install') | |
$controllerClassName = 'TYPO3\\CMS\\Install\\Controller\\StepController' | |
$controllerClassName = 'TYPO3\\CMS\\Install\\Controller\\StepController' |
Definition at line 108 of file Install.php.
Referenced by TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest\constructRendersACommandIdentifierByTheGivenControllerAndCommandName(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest\constructThrowsExceptionIfCommandClassNameIsInvalid(), and TYPO3\CMS\Extbase\Scheduler\FieldProvider\getArgumentType().
$getPost = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('install') |
Definition at line 107 of file Install.php.
const TYPO3_enterInstallScript '1' |
Definition at line 97 of file Install.php.
Referenced by TYPO3\CMS\Core\Core\Bootstrap\defineTypo3RequestTypes(), TYPO3\CMS\Core\Core\ClassLoader\getLocker(), and TYPO3\CMS\Core\FormProtection\FormProtectionFactory\isInstallToolSession().
const TYPO3_MODE 'BE' |
This file is part of the TYPO3 CMS project.
It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.
For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.
The TYPO3 project - inspiring people to share! Entry point to the install tool and step installer.
There are two main controllers: "step" and "tool". The step controller is always called first, and redirects to the tool controller if the basic core functionality is given (instance configuration exists, database connection works, ...) The tool controller is the main "install tool" with all the main functionality.
The step controller handles the basic installation. During first installation it creates the basic file and folder structure, the configuration files, the database connection and a basic configuration. Those steps are cycled through and if some step returns TRUE on "needsExecution", an input form of this step is rendered. After initial installation, the step installer is still called if the install tool is accessed, so it will automatically come up if some basic configuration fails. If everything is ok, the step installer will redirect to the main install tool. The step installer also has some "silent" update scripts, for example it migrates a localconf.php to LocalConfiguration if needed.
This ensures as soon as the tool controller is called, the basic configuration is ok.
Whenever the bootstrap or other core elements figure the installation needs an update that is handled within the step controller, it should just redirect to the entry script and let the step controller do necessary work.
The step installer initiates browser redirects if steps were executed. This simplifies internal logic by separating the different bootstrap states needed during installation from each other.
There is also a backend module controller, that basically only shows a screen with the "enable install tool" button and then redirects to the entry script. Other than that, it does not interfere with step or tool controller and just sets a context GET parameter to indicate that the install tool is called within backend context.
To coordinate different tasks within step and install controller and actions, several GET or POST parameters are used, all prefixed with "install". Parameters allowed as GET and POST are preserved during redirects, POST parameters are thrown away between redirects (HTTP status code 303).
The following main GET and POST parameters are used:
Definition at line 96 of file Install.php.