Project

General

Profile

Actions

Task #91140

open

Improve fake Frontends in Core

Added by Markus Klein about 4 years ago. Updated about 4 years ago.

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)

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #91139: Exception when ViewHelper f:format.html is used in backend context in latest master BranchClosedMarkus Klein2020-04-20

Actions
Actions #1

Updated by Markus Klein about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Markus Klein about 4 years ago

  • Related to Bug #91139: Exception when ViewHelper f:format.html is used in backend context in latest master Branch added
Actions #3

Updated by Georg Ringer about 4 years ago

  • Status changed from New to Accepted
Actions

Also available in: Atom PDF