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

Public Member Functions

 __construct (private readonly FailsafePackageManager $packageManager, private readonly SilentConfigurationUpgradeService $silentConfigurationUpgradeService, private readonly SilentTemplateFileUpgradeService $silentTemplateFileUpgradeService, private readonly BackendEntryPointResolver $backendEntryPointResolver, private readonly HashService $hashService,)
 
 initAction (ServerRequestInterface $request)
 
 mainLayoutAction (ServerRequestInterface $request)
 
ResponseInterface executeSilentConfigurationUpdateAction ()
 
ResponseInterface executeSilentTemplateFileUpdateAction ()
 
 executeSilentExtensionConfigurationSynchronizationAction ()
 

Additional Inherited Members

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

Detailed Description

Layout controller

Renders a first "load the Javascript in <head>" view, and the main layout of the install tool in second action.

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

Definition at line 47 of file LayoutController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Controller\LayoutController::__construct ( private readonly FailsafePackageManager  $packageManager,
private readonly SilentConfigurationUpgradeService  $silentConfigurationUpgradeService,
private readonly SilentTemplateFileUpgradeService  $silentTemplateFileUpgradeService,
private readonly BackendEntryPointResolver  $backendEntryPointResolver,
private readonly HashService  $hashService 
)

Definition at line 50 of file LayoutController.php.

Member Function Documentation

◆ executeSilentConfigurationUpdateAction()

ResponseInterface TYPO3\CMS\Install\Controller\LayoutController::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 119 of file LayoutController.php.

◆ executeSilentExtensionConfigurationSynchronizationAction()

TYPO3\CMS\Install\Controller\LayoutController::executeSilentExtensionConfigurationSynchronizationAction ( )

Synchronize TYPO3_CONF_VARS['EXTENSIONS'] with possibly new defaults from extensions ext_conf_template.txt files. This make LocalConfiguration the only source of truth for extension configuration, and it is always up-to-date, also if an extension has been updated.

Definition at line 158 of file LayoutController.php.

◆ executeSilentTemplateFileUpdateAction()

ResponseInterface TYPO3\CMS\Install\Controller\LayoutController::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 139 of file LayoutController.php.

◆ initAction()

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

The init action renders an HTML response with HTML view having <head> section containing resources to main .js routing.

Definition at line 62 of file LayoutController.php.

References $GLOBALS, TYPO3\CMS\Core\Core\Environment\getContext(), TYPO3\CMS\Core\Core\Environment\getProjectPath(), and TYPO3\CMS\Install\Controller\AbstractController\initializeView().

◆ mainLayoutAction()

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

Return a json response with the main HTML layout body: Toolbar, main menu and doc header in standalone, doc header only in backend context. Silent updaters are executed before this main view is loaded.

Definition at line 103 of file LayoutController.php.

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