Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Deprecate EidUtility and methods within TSFE
EidUtility is a poor-mans middleware functionality with lots of side-effects, and is marked as deprecated. On top, the following methods in TypoScriptFrontendController are deprecated: - initFEuser() - storeSessionData() - previewInfo() - hook_eofe() - addTempContentHttpHeaders() - sendCacheHeaders() Additionally, the PreviewInfo Hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo'] is deprecated, as the eofe hook solves the same issues. Resolves: #85878 Releases: master Change-Id: I49cdb8c9c0b3cdf08fa90ce54cc5e570cfd13dce Reviewed-on: https://review.typo3.org/57876 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
- Loading branch information
Showing
7 changed files
with
193 additions
and
12 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
...entation/Changelog/master/Deprecation-85878-EidUtilityAndVariousTSFEMethods.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
========================================================= | ||
Deprecation: #85878 - EidUtility and various TSFE methods | ||
========================================================= | ||
|
||
See :issue:`85878` | ||
|
||
Description | ||
=========== | ||
|
||
The Utility class :php:`TYPO3\CMS\Frontend\Utility\EidUtility` has been marked as deprecated. | ||
|
||
The following methods have been marked as deprecated: | ||
* :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->initFEuser()` | ||
* :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->storeSessionData()` | ||
* :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->previewInfo()` | ||
* :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->hook_eofe()` | ||
* :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->addTempContentHttpHeaders()` | ||
* :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->sendCacheHeaders()` | ||
|
||
The following hook has been deprecated: | ||
`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']` | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Calling any of the methods or registering a hook listener will trigger a deprecation log message. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
Any TYPO3 installation with custom functionality in the frontend using any of the frontend, or the hook. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
As all functionality has been set up via PSR-15 middlewares, use a PSR-15 middleware instead. | ||
|
||
The methods :php:`addTempContentHttpHeaders()` and :php:`sendCacheHeaders()` are now incorporated | ||
within :php:`TSFE->processOutput()`, 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_eofe` which is executed in the Frontend rendering | ||
flow directly afterwards. | ||
|
||
.. index:: Frontend, PHP-API, FullyScanned, ext:frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters