Deprecation: #85878 - EidUtility and various TSFE methods
See forge#85878
Description
The Utility class
\TYPO3\ has been marked as deprecated.
The following methods have been marked as deprecated:
TYPO3\CMS\ Frontend\ Controller\ Typo Script Frontend Controller->init FEuser () TYPO3\CMS\ Frontend\ Controller\ Typo Script Frontend Controller->store Session Data () TYPO3\CMS\ Frontend\ Controller\ Typo Script Frontend Controller->preview Info () TYPO3\CMS\ Frontend\ Controller\ Typo Script Frontend Controller->hook_ eofe () TYPO3\CMS\ Frontend\ Controller\ Typo Script Frontend Controller->add Temp Content Http Headers () TYPO3\CMS\ Frontend\ Controller\ Typo Script Frontend Controller->send Cache Headers ()
The following hook has been marked as deprecated:
$GLOBALS['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['tslib/ class. tslib_ fe. php'] ['hook_ preview Info']
Impact
Calling any of the methods or registering a hook listener will trigger a PHP
E_ error.
Affected Installations
Any TYPO3 installation with custom functionality in the frontend using any of the methods, or the hook.
Migration
As all functionality has been set up via PSR-15 middlewares, use a PSR-15 middleware instead.
The method
store should be replaced with
TSFE->fe_.
The methods
add and
send are now incorporated
within
TSFE->process. This function should be used, or rather add custom headers
to a PSR-15 Response object if available.
On top, the hook is superseded by the Frontend Hook hook_ which is executed in the Frontend rendering
flow directly afterwards.