‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService Class Reference

Public Member Functions

 __construct (protected readonly WebServerConfigurationFileService $webServerConfigurationFileService)
 execute ()

Protected Member Functions

 addBackendRoutingRewriteRules ()
 throwTemplateFileChangedException ()

Detailed Description

Execute "silent" upgrades for folder structure template files, if needed.

Since the content of the template files may changed over time this class performs the necessary content changes in those files already present in the installation. It is called by the layout controller at an early point.

Every change is encapsulated in one method and must throw a TemplateFileChangedException if its content was updated.

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 34 of file SilentTemplateFileUpgradeService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService::__construct ( protected readonly WebServerConfigurationFileService  $webServerConfigurationFileService)

Definition at line 36 of file SilentTemplateFileUpgradeService.php.

Member Function Documentation

◆ addBackendRoutingRewriteRules()

TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService::addBackendRoutingRewriteRules ( )

◆ execute()

TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService::execute ( )

Executed content changes. Single upgrade methods must throw a TemplateFileChangedException if content of the file was updated.


Definition at line 44 of file SilentTemplateFileUpgradeService.php.

References TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService\addBackendRoutingRewriteRules().

◆ throwTemplateFileChangedException()

TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService::throwTemplateFileChangedException ( )

Throw exception after template file content change to trigger a redirect.


Definition at line 66 of file SilentTemplateFileUpgradeService.php.

Referenced by TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService\addBackendRoutingRewriteRules().