[TASK] Inject TSFE object into ContentObjectRenderer 26/58026/2
authorBenni Mack <benni@typo3.org>
Fri, 24 Aug 2018 15:28:18 +0000 (17:28 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Sat, 25 Aug 2018 12:51:57 +0000 (14:51 +0200)
commitd0b5f7924fd780c99e983eda35e27e05587942f8
tree96d0dbf435e247b84e2bacda4812ca36f65f0441
parent453826ce6bc47ce60dbef8791fa91eaa56d4f412
[TASK] Inject TSFE object into ContentObjectRenderer

The class ContentObjectRenderer expects $typoScriptFrontendController
as first argument inside the constructor.

When creating cObj from within TypoScriptFrontendController, it is very valuable
to actually use the actual current object instead of doing the regular fallback
to $GLOBALS['TSFE'], to use this in proper recursions.

Resolves: #85968
Releases: master
Change-Id: I2238c8fc4d4d76f177b02630ed5627a3c9a7a060
Reviewed-on: https://review.typo3.org/58026
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php