Project

General

Profile

Task #91140

Updated by Markus Klein about 4 years ago

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) 

Back