Project

General

Profile

Actions

Bug #87186

closed

Missing namespace for TypoScriptFrontendController in CObjectViewHelper

Added by David Bruchmann almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
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;


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #86979: stdWrap fieldRequired/insertData sometimes not working as expected since TYPO3 9 LTSClosed2018-11-22

Actions
Actions

Also available in: Atom PDF