#91140Improve fake Frontends in Core
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 9
-
Markus Klein changed description <span data-processor="relativetime" data-value="2020-04-20T11:25:50+00:00" > 04/20/20, 11:25 </span>
-
Markus Klein changed Related to #91139 <span data-processor="relativetime" data-value="2020-04-20T11:26:11+00:00" > 04/20/20, 11:26 </span>
-
Georg Ringer changed status
NewAccepted <span data-processor="relativetime" data-value="2020-04-20T12:41:31+00:00" > 04/20/20, 12:41 </span> -
Georg Ringer changed Duplicated by #111022 <span data-processor="relativetime" data-value="2026-10-12T19:50:16+00:00" > 10/12/26, 19:50 </span>
-
Georg Ringer changed TYPO3 Version
1014 <span data-processor="relativetime" data-value="2026-11-02T16:23:21+00:00" > 11/02/26, 16:23 </span> -
Benni Mack commented and changed status
AcceptedClosed <span data-processor="relativetime" data-value="2026-11-13T09:30:35+00:00" > 11/13/26, 09:30 </span> -
Markus Klein commented <span data-processor="relativetime" data-value="2026-11-17T10:01:57+00:00" > 11/17/26, 10:01 </span>
I want to be precise about this, as the last comment is not quite correct.
Core still has fake frontend in TYPO3\CMS\Redirects\Service\RedirectService, but TSFE is not a topic anymore.
-
Benni Mack commented <span data-processor="relativetime" data-value="2026-11-17T10:18:26+00:00" > 11/17/26, 10:18 </span>
Markus Klein wrote in #note-7:
> I want to be precise about this, as the last comment is not quite correct.
>
> Core still has fake frontend in TYPO3\CMS\Redirects\Service\RedirectService, but TSFE is not a topic anymore.That is correct. We could even consider that we want a frontend-fake-subrequest completely (which we have in TF), but that’d be a completely separate job (and ticket) IMHO
-
Markus Klein commented <span data-processor="relativetime" data-value="2026-11-17T20:56:40+00:00" > 11/17/26, 20:56 </span>
Sure. Just wanted to have this correct here, so that AI has a complete picture, when it uses this ticket :-)
No need to fake frontend in core anymore, TSFE is gone :)