#87186Missing namespace for TypoScriptFrontendController in CObjectViewHelper
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;