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

Public Member Functions

ResponseInterface initAction (ServerRequestInterface $request)
 
ResponseInterface mainLayoutAction (ServerRequestInterface $request)
 
ResponseInterface executeSilentConfigurationUpdateAction ()
 
ResponseInterface executeSilentLegacyExtConfExtensionConfigurationUpdateAction ()
 
ResponseInterface executeSilentExtensionConfigurationSynchronizationAction ()
 

Private Member Functions

array removeDotsFromArrayKeysRecursive (array $settings)
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\Controller\AbstractController
StandaloneView initializeStandaloneView (ServerRequestInterface $request, string $templatePath)
 
 loadExtLocalconfDatabaseAndExtTables ()
 

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 35 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 84 of file LayoutController.php.

◆ executeSilentExtensionConfigurationSynchronizationAction()

ResponseInterface 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.

Returns
‪ResponseInterface

Definition at line 143 of file LayoutController.php.

◆ executeSilentLegacyExtConfExtensionConfigurationUpdateAction()

ResponseInterface TYPO3\CMS\Install\Controller\LayoutController::executeSilentLegacyExtConfExtensionConfigurationUpdateAction ( )

Legacy ajax call. This silent updater takes care that all extensions configured in LocalConfiguration EXT/extConf serialized array are "upmerged" to arrays within EXTENSIONS if this extension does not exist in EXTENSIONS yet.

Returns
‪ResponseInterface
Deprecated:
‪since TYPO3 v9, will be removed with TYPO3 v10.0

Definition at line 106 of file LayoutController.php.

References TYPO3\CMS\Install\Controller\LayoutController\removeDotsFromArrayKeysRecursive().

◆ initAction()

ResponseInterface 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.

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 44 of file LayoutController.php.

References $GLOBALS, and TYPO3\CMS\Install\Controller\AbstractController\initializeStandaloneView().

◆ mainLayoutAction()

ResponseInterface 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.

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 70 of file LayoutController.php.

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

◆ removeDotsFromArrayKeysRecursive()

array TYPO3\CMS\Install\Controller\LayoutController::removeDotsFromArrayKeysRecursive ( array  $settings)
private

Helper method for executeSilentLegacyExtConfExtensionConfigurationUpdateAction(). Old EXT/extConf settings have dots at the end of array keys if nested arrays were used. The new configuration does not use this funny nested representation anymore. The method removes all dots at the end of given array keys recursive to do this transition.

Parameters
array$settings
Returns
‪array New settings
Deprecated:
‪since TYPO3 v9, will be removed with TYPO3 v10.0 along with executeSilentLegacyExtConfExtensionConfigurationUpdateAction()

Definition at line 162 of file LayoutController.php.

Referenced by TYPO3\CMS\Install\Controller\LayoutController\executeSilentLegacyExtConfExtensionConfigurationUpdateAction().