Actions
Bug #87186
closedMissing namespace for TypoScriptFrontendController in CObjectViewHelper
Start date:
2018-12-17
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
In the CObjectViewHelper is this function:
/** * @return ContentObjectRenderer */ protected static function getContentObjectRenderer() { return GeneralUtility::makeInstance( ContentObjectRenderer::class, $GLOBALS['TSFE'] ?? GeneralUtility::makeInstance(TypoScriptFrontendController::class, null, 0, 0) ); }
Here TypoScriptFrontendController has no namespace and that throws an error.
Adding "use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;" above the class solves the issue;
Version: 9.5.3;
Actions