Actions
Task #91140
openImprove fake Frontends in Core
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-04-20
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
The Core creates a dummy TSFE object in various places and uses mostly \stdClass
for this.
On the other hand the Core relies on $GLOBALS['TSFE']
being actually of type TypoScriptFrontendController
in everywhere.
It should be considered to refactor these fake TSFE implementation to either a central service that takes care of creating a valid "shim", or TypoScriptFrontendController
should be refactored to maybe a class hierarchy where sort of a base-class can be used for "fake TSFE"s.
Currently fake TSFEs are used in:
- \TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::simulateFrontendEnvironment
- \TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::simulateFrontendEnvironment
- \TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::simulateFrontendEnvironment
- (\TYPO3\CMS\Redirects\Service\RedirectService::bootFrontendController this one uses the real class)
Updated by Markus Klein over 4 years ago
- Related to Bug #91139: Exception when ViewHelper f:format.html is used in backend context in latest master Branch added
Actions