‪TYPO3CMS  10.4
TYPO3\CMS\Install\Controller\BackendModuleController Class Reference

Public Member Functions

 __construct ()
 
ResponseInterface backendUserConfirmationAction (ServerRequestInterface $request)
 
ResponseInterface maintenanceAction ()
 
ResponseInterface settingsAction ()
 
ResponseInterface upgradeAction ()
 
ResponseInterface environmentAction ()
 

Public Attributes

yield $service
 

Protected Member Functions

ResponseInterface null getBackendUserConfirmationRedirect (string $targetController)
 
 getBackendUserConfirmationUri (array $parameters)
 
ResponseInterface setAuthorizedAndRedirect (string $controller)
 
bool verifyInstallToolPassword (ServerRequestInterface $request)
 
bool verifyBackendUserPassword (ServerRequestInterface $request)
 
Generator< int, getAuthServices(BackendUserAuthentication $backendUser, array $loginData, array $authInfo):\Generator { $serviceChain=[];$subType='authUserBE';while( $service=GeneralUtility::makeInstanceService( 'auth', $subType, $serviceChain)) { $serviceChain[]=$service-> getServiceKey ()
 
 getBackendUser ()
 
SessionService getSessionService ()
 
 applyRsaAuthModules ()
 

Protected Attributes

const FLAG_CONFIRMATION_REQUEST = 1
 
const FLAG_INSTALL_TOOL_PASSWORD = 2
 
const ALLOWED_ACTIONS = ['maintenance', 'settings', 'upgrade', 'environment']
 
SessionService $sessionService
 
UriBuilder $uriBuilder
 

Detailed Description

Backend module controller to the Install Tool. Sets an Install Tool session marked as "initialized by a valid system administrator backend user" and redirects to the Install Tool entry point.

This is a classic backend module that does not interfere with other code within the Install Tool, it can be seen as a facade around Install Tool just to embed the Install Tool in backend.

This class is a specific controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 46 of file BackendModuleController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Controller\BackendModuleController::__construct ( )

Definition at line 60 of file BackendModuleController.php.

Member Function Documentation

◆ applyRsaAuthModules()

TYPO3\CMS\Install\Controller\BackendModuleController::applyRsaAuthModules ( )
protected

Provides legacy support for ext:rsaauth concerning submitting passwords.

Definition at line 328 of file BackendModuleController.php.

References TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded().

◆ backendUserConfirmationAction()

ResponseInterface TYPO3\CMS\Install\Controller\BackendModuleController::backendUserConfirmationAction ( ServerRequestInterface  $request)

◆ environmentAction()

ResponseInterface TYPO3\CMS\Install\Controller\BackendModuleController::environmentAction ( )

◆ getBackendUser()

TYPO3\CMS\Install\Controller\BackendModuleController::getBackendUser ( )
protected

◆ getBackendUserConfirmationRedirect()

ResponseInterface null TYPO3\CMS\Install\Controller\BackendModuleController::getBackendUserConfirmationRedirect ( string  $targetController)
protected

◆ getBackendUserConfirmationUri()

TYPO3\CMS\Install\Controller\BackendModuleController::getBackendUserConfirmationUri ( array  $parameters)
protected

◆ getServiceKey()

Generator<int, getAuthServices(BackendUserAuthentication $backendUser, array $loginData, array $authInfo): \Generator { $serviceChain = []; $subType = 'authUserBE'; while ($service = GeneralUtility::makeInstanceService('auth', $subType, $serviceChain)) { $serviceChain[] = $service-> TYPO3\CMS\Install\Controller\BackendModuleController::getServiceKey ( )
protected

Initializes authentication services to be used in a foreach loop

Parameters
BackendUserAuthentication$backendUser
array$loginData
array$authInfo
Returns
‪\Generator<int, object>

◆ getSessionService()

SessionService TYPO3\CMS\Install\Controller\BackendModuleController::getSessionService ( )
protected

Install Tool modified sessions meta-data (handler, storage, name) which conflicts with existing session that for instance is used for ext:rsaauth.

Returns
‪SessionService

Definition at line 316 of file BackendModuleController.php.

References TYPO3\CMS\Install\Controller\BackendModuleController\$sessionService.

Referenced by TYPO3\CMS\Install\Controller\BackendModuleController\getBackendUserConfirmationRedirect(), and TYPO3\CMS\Install\Controller\BackendModuleController\setAuthorizedAndRedirect().

◆ maintenanceAction()

ResponseInterface TYPO3\CMS\Install\Controller\BackendModuleController::maintenanceAction ( )

◆ setAuthorizedAndRedirect()

◆ settingsAction()

ResponseInterface TYPO3\CMS\Install\Controller\BackendModuleController::settingsAction ( )

◆ upgradeAction()

ResponseInterface TYPO3\CMS\Install\Controller\BackendModuleController::upgradeAction ( )

◆ verifyBackendUserPassword()

bool TYPO3\CMS\Install\Controller\BackendModuleController::verifyBackendUserPassword ( ServerRequestInterface  $request)
protected

Verifies that provided password is actually correct for current backend user by stepping through authentication chain in $GLOBALS['BE_USER].

Parameters
ServerRequestInterface$request
Returns
‪bool

Definition at line 241 of file BackendModuleController.php.

References TYPO3\CMS\Install\Controller\BackendModuleController\$service, and TYPO3\CMS\Install\Controller\BackendModuleController\getBackendUser().

Referenced by TYPO3\CMS\Install\Controller\BackendModuleController\backendUserConfirmationAction().

◆ verifyInstallToolPassword()

bool TYPO3\CMS\Install\Controller\BackendModuleController::verifyInstallToolPassword ( ServerRequestInterface  $request)
protected

Verifies that provided password matches Install Tool password.

Parameters
ServerRequestInterface$request
Returns
‪bool

Definition at line 216 of file BackendModuleController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\BackendModuleController\backendUserConfirmationAction().

Member Data Documentation

◆ $service

yield TYPO3\CMS\Install\Controller\BackendModuleController::$service

◆ $sessionService

SessionService TYPO3\CMS\Install\Controller\BackendModuleController::$sessionService
protected

◆ $uriBuilder

UriBuilder TYPO3\CMS\Install\Controller\BackendModuleController::$uriBuilder
protected

Definition at line 58 of file BackendModuleController.php.

◆ ALLOWED_ACTIONS

const TYPO3\CMS\Install\Controller\BackendModuleController::ALLOWED_ACTIONS = ['maintenance', 'settings', 'upgrade', 'environment']
protected

Definition at line 50 of file BackendModuleController.php.

◆ FLAG_CONFIRMATION_REQUEST

const TYPO3\CMS\Install\Controller\BackendModuleController::FLAG_CONFIRMATION_REQUEST = 1
protected

Definition at line 48 of file BackendModuleController.php.

◆ FLAG_INSTALL_TOOL_PASSWORD

const TYPO3\CMS\Install\Controller\BackendModuleController::FLAG_INSTALL_TOOL_PASSWORD = 2
protected

Definition at line 49 of file BackendModuleController.php.