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

Public Member Functions

 __construct (WebServerConfigurationFileService $webServerConfigurationFileService)
 
 execute ()
 

Protected Member Functions

 addBackendRoutingRewriteRules ()
 
 throwTemplateFileChangedException ()
 

Protected Attributes

WebServerConfigurationFileService $webServerConfigurationFileService
 

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 ( WebServerConfigurationFileService  $webServerConfigurationFileService)

Member Function Documentation

◆ addBackendRoutingRewriteRules()

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

◆ execute()

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

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

Exceptions
TemplateFileChangedException

Definition at line 49 of file SilentTemplateFileUpgradeService.php.

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

◆ throwTemplateFileChangedException()

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

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

Exceptions
TemplateFileChangedException

Definition at line 71 of file SilentTemplateFileUpgradeService.php.

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

Member Data Documentation

◆ $webServerConfigurationFileService

WebServerConfigurationFileService TYPO3\CMS\Install\Service\SilentTemplateFileUpgradeService::$webServerConfigurationFileService
protected