‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Controller\InstallerController Class Reference
Inheritance diagram for TYPO3\CMS\Install\Controller\InstallerController:
TYPO3\CMS\Install\Controller\ControllerTrait

Public Member Functions

 __construct (private readonly LateBootService $lateBootService, private readonly SilentConfigurationUpgradeService $silentConfigurationUpgradeService, private readonly SilentTemplateFileUpgradeService $silentTemplateFileUpgradeService, private readonly ConfigurationManager $configurationManager, private readonly FailsafePackageManager $packageManager, private readonly VerifyHostHeader $verifyHostHeader, private readonly FormProtectionFactory $formProtectionFactory, private readonly SetupService $setupService, private readonly SetupDatabaseService $setupDatabaseService, private readonly HashService $hashService,)
 
 initAction (ServerRequestInterface $request)
 
 mainLayoutAction (ServerRequestInterface $request)
 
 showInstallerNotAvailableAction ()
 
 checkEnvironmentAndFoldersAction ()
 
 showEnvironmentAndFoldersAction (ServerRequestInterface $request)
 
 executeEnvironmentAndFoldersAction (ServerRequestInterface $request)
 
 checkTrustedHostsPatternAction (ServerRequestInterface $request)
 
 executeAdjustTrustedHostsPatternAction (ServerRequestInterface $request)
 
ResponseInterface executeSilentConfigurationUpdateAction ()
 
ResponseInterface executeSilentTemplateFileUpdateAction ()
 
 checkDatabaseConnectAction ()
 
 showDatabaseConnectAction (ServerRequestInterface $request)
 
 executeDatabaseConnectAction (ServerRequestInterface $request)
 
 checkDatabaseSelectAction ()
 
 showDatabaseSelectAction (ServerRequestInterface $request)
 
 checkDatabaseRequirementsAction (ServerRequestInterface $request)
 
 executeDatabaseSelectAction (ServerRequestInterface $request)
 
 checkDatabaseDataAction ()
 
 showDatabaseDataAction (ServerRequestInterface $request)
 
 executeDatabaseDataAction (ServerRequestInterface $request)
 
 showDefaultConfigurationAction (ServerRequestInterface $request)
 
 executeDefaultConfigurationAction (ServerRequestInterface $request)
 

Protected Member Functions

 initializeView ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\Controller\ControllerTrait
 createContentSecurityPolicy ()
 

Private Member Functions

 retrieveDatabaseNameFromRequest (ServerRequestInterface $request)
 

Detailed Description

Install step controller, dispatcher class of step actions.

This class is a specific controller implementation and is not considered part of the Public TYPO3 API. @phpstan-import-type Params from DriverManager

Definition at line 70 of file InstallerController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Controller\InstallerController::__construct ( private readonly LateBootService  $lateBootService,
private readonly SilentConfigurationUpgradeService  $silentConfigurationUpgradeService,
private readonly SilentTemplateFileUpgradeService  $silentTemplateFileUpgradeService,
private readonly ConfigurationManager  $configurationManager,
private readonly FailsafePackageManager  $packageManager,
private readonly VerifyHostHeader  $verifyHostHeader,
private readonly FormProtectionFactory  $formProtectionFactory,
private readonly SetupService  $setupService,
private readonly SetupDatabaseService  $setupDatabaseService,
private readonly HashService  $hashService 
)

Definition at line 73 of file InstallerController.php.

Member Function Documentation

◆ checkDatabaseConnectAction()

TYPO3\CMS\Install\Controller\InstallerController::checkDatabaseConnectAction ( )

Check if database connect step needs to be shown

Definition at line 278 of file InstallerController.php.

◆ checkDatabaseDataAction()

TYPO3\CMS\Install\Controller\InstallerController::checkDatabaseDataAction ( )

Check if initial data needs to be imported

Definition at line 490 of file InstallerController.php.

References TYPO3\CMS\Core\Database\ConnectionPool\DEFAULT_CONNECTION_NAME.

◆ checkDatabaseRequirementsAction()

TYPO3\CMS\Install\Controller\InstallerController::checkDatabaseRequirementsAction ( ServerRequestInterface  $request)

Pre-check whether all requirements for the installed database driver and platform are fulfilled

Definition at line 354 of file InstallerController.php.

References $GLOBALS, TYPO3\CMS\Core\Database\ConnectionPool\DEFAULT_CONNECTION_NAME, and TYPO3\CMS\Install\Controller\InstallerController\retrieveDatabaseNameFromRequest().

◆ checkDatabaseSelectAction()

TYPO3\CMS\Install\Controller\InstallerController::checkDatabaseSelectAction ( )

Check if a database needs to be selected

Definition at line 320 of file InstallerController.php.

◆ checkEnvironmentAndFoldersAction()

TYPO3\CMS\Install\Controller\InstallerController::checkEnvironmentAndFoldersAction ( )

Check if "environment and folders" should be shown

Definition at line 147 of file InstallerController.php.

◆ checkTrustedHostsPatternAction()

TYPO3\CMS\Install\Controller\InstallerController::checkTrustedHostsPatternAction ( ServerRequestInterface  $request)

Check if trusted hosts pattern needs to be adjusted

Definition at line 211 of file InstallerController.php.

◆ executeAdjustTrustedHostsPatternAction()

TYPO3\CMS\Install\Controller\InstallerController::executeAdjustTrustedHostsPatternAction ( ServerRequestInterface  $request)

Adjust trusted hosts pattern to '.*' if it does not match yet

Definition at line 224 of file InstallerController.php.

◆ executeDatabaseConnectAction()

TYPO3\CMS\Install\Controller\InstallerController::executeDatabaseConnectAction ( ServerRequestInterface  $request)

Test database connect data

Definition at line 306 of file InstallerController.php.

◆ executeDatabaseDataAction()

TYPO3\CMS\Install\Controller\InstallerController::executeDatabaseDataAction ( ServerRequestInterface  $request)

Create main db layout

Definition at line 521 of file InstallerController.php.

◆ executeDatabaseSelectAction()

TYPO3\CMS\Install\Controller\InstallerController::executeDatabaseSelectAction ( ServerRequestInterface  $request)

Select / create and test a database

Definition at line 448 of file InstallerController.php.

References TYPO3\CMS\Install\Controller\InstallerController\retrieveDatabaseNameFromRequest().

◆ executeDefaultConfigurationAction()

TYPO3\CMS\Install\Controller\InstallerController::executeDefaultConfigurationAction ( ServerRequestInterface  $request)

◆ executeEnvironmentAndFoldersAction()

TYPO3\CMS\Install\Controller\InstallerController::executeEnvironmentAndFoldersAction ( ServerRequestInterface  $request)

Create main folder layout, LocalConfiguration, PackageStates

Definition at line 184 of file InstallerController.php.

References TYPO3\CMS\Core\Http\fromRequest, and TYPO3\CMS\Core\Core\Environment\getLegacyConfigPath().

◆ executeSilentConfigurationUpdateAction()

ResponseInterface TYPO3\CMS\Install\Controller\InstallerController::executeSilentConfigurationUpdateAction ( )

Execute silent configuration update. May be called multiple times until success = true is returned.

Returns
‪ResponseInterface success = true if no change has been done

Definition at line 242 of file InstallerController.php.

◆ executeSilentTemplateFileUpdateAction()

ResponseInterface TYPO3\CMS\Install\Controller\InstallerController::executeSilentTemplateFileUpdateAction ( )

Execute silent template files update. May be called multiple times until success = true is returned.

Returns
‪ResponseInterface success = true if no change has been done

Definition at line 262 of file InstallerController.php.

◆ initAction()

TYPO3\CMS\Install\Controller\InstallerController::initAction ( ServerRequestInterface  $request)

◆ initializeView()

◆ mainLayoutAction()

TYPO3\CMS\Install\Controller\InstallerController::mainLayoutAction ( ServerRequestInterface  $request)

Main layout with progress bar, header

Definition at line 123 of file InstallerController.php.

References TYPO3\CMS\Install\Controller\InstallerController\initializeView().

◆ retrieveDatabaseNameFromRequest()

TYPO3\CMS\Install\Controller\InstallerController::retrieveDatabaseNameFromRequest ( ServerRequestInterface  $request)
private

◆ showDatabaseConnectAction()

TYPO3\CMS\Install\Controller\InstallerController::showDatabaseConnectAction ( ServerRequestInterface  $request)

Show database connect step

Definition at line 288 of file InstallerController.php.

References TYPO3\CMS\Install\Controller\InstallerController\initializeView().

◆ showDatabaseDataAction()

TYPO3\CMS\Install\Controller\InstallerController::showDatabaseDataAction ( ServerRequestInterface  $request)

Render "import initial data"

Definition at line 504 of file InstallerController.php.

References $GLOBALS, and TYPO3\CMS\Install\Controller\InstallerController\initializeView().

◆ showDatabaseSelectAction()

TYPO3\CMS\Install\Controller\InstallerController::showDatabaseSelectAction ( ServerRequestInterface  $request)

Render "select a database"

Definition at line 330 of file InstallerController.php.

References $errors, and TYPO3\CMS\Install\Controller\InstallerController\initializeView().

◆ showDefaultConfigurationAction()

TYPO3\CMS\Install\Controller\InstallerController::showDefaultConfigurationAction ( ServerRequestInterface  $request)

Show last "create empty site / install distribution"

Definition at line 587 of file InstallerController.php.

References TYPO3\CMS\Install\Controller\InstallerController\initializeView(), and TYPO3\CMS\Core\Core\Environment\isComposerMode().

◆ showEnvironmentAndFoldersAction()

TYPO3\CMS\Install\Controller\InstallerController::showEnvironmentAndFoldersAction ( ServerRequestInterface  $request)

Render "environment and folders"

Definition at line 157 of file InstallerController.php.

References TYPO3\CMS\Core\Http\fromRequest, and TYPO3\CMS\Install\Controller\InstallerController\initializeView().

◆ showInstallerNotAvailableAction()

TYPO3\CMS\Install\Controller\InstallerController::showInstallerNotAvailableAction ( )

Render "FIRST_INSTALL file need to exist" view

Definition at line 135 of file InstallerController.php.

References TYPO3\CMS\Install\Controller\InstallerController\initializeView().