Deprecation: #79858 - TSFE-related properties and methods
See forge#79858
Description
The following properties within TypoScriptFrontendController have been marked as deprecated:
$compensate
Field Width $exclude
CHash Vars $script
Parse Time
The following methods have been marked as deprecated:
Typo
(used viaScript Frontend Controller->generate Page_ which Script () config.
)page Gen Script Typo
Script Frontend Controller->encrypt Email () Typo
Script Frontend Controller->encrypt Charcode () Page
Generator:: pagegen Init ()
The following TypoScript properties have been marked as deprecated:
config.
page Gen Script config.
compensate Field Width
Impact
Calling any of the PHP methods will trigger a deprecation log entry.
All properties and options are still callable with the according output, however there are alternatives to achieve the same.
Affected Installations
Any TYPO3 installation working with custom extensions that use any of these functionalities, methods or properties.
Migration
All of the functionality is obsolete or outdated and should be handled differently from now on:
- The
compensate
option was used for forms built with TYPO3 4.x (before TYPO3 4.6), instead, any other form framework should be used for forms and for field width calculations, where styling of form fields are also handled via CSS.Field Width - An alternative
config.
can be used and set via hooks in PHP classes nowadays and executed, instead of configuring this functionality on a high-end TypoScript level to execute include spaghetti PHP code within a file.page Gen Script Page
is solely working on public properties of the TSFE PHP class, which belongs to the TSFE object itself (thus, the logic is copied toGenerator:: pagegen Init () $TSFE->prepare
)Page Content Generation () - Calculating the debug parse time for the web page is not part of the controller logic but more certainly belongs to the request handling itself, where it is handled in a cleaner way for PHP, waiting for further refactorings in TYPO3 v9.
- The methods
Typo
andScript Frontend Controller->encrypt Email () encrypt
have been moved to ContentObjectRenderer.Charcode ()