diff --git a/Classes/ContentObject/JsonContentObject.php b/Classes/ContentObject/JsonContentObject.php index 1780c900..997b1aca 100755 --- a/Classes/ContentObject/JsonContentObject.php +++ b/Classes/ContentObject/JsonContentObject.php @@ -21,7 +21,6 @@ use Psr\Log\LoggerAwareTrait; use RecursiveArrayIterator; use RecursiveIteratorIterator; -use TYPO3\CMS\Core\Configuration\Features; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Frontend\ContentObject\AbstractContentObject; use TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor; @@ -177,7 +176,6 @@ protected function processFieldWithDataProcessing(array $dataProcessing): mixed ); $dataProcessingData = null; - $features = GeneralUtility::makeInstance(Features::class); foreach ($this->recursiveFind($dataProcessing, 'as') as $value) { if (isset($data[$value])) { diff --git a/Configuration/TCA/Overrides/sys_template.php b/Configuration/TCA/Overrides/sys_template.php index 2a951ee8..3320f62a 100644 --- a/Configuration/TCA/Overrides/sys_template.php +++ b/Configuration/TCA/Overrides/sys_template.php @@ -20,4 +20,13 @@ 'Configuration/TypoScript', 'Headless' ); + + /** + * Mixed-Mode TypoScript for Headless + */ + ExtensionManagementUtility::addStaticFile( + 'headless', + 'Configuration/TypoScript/Mixed', + 'Headless - Mixed mode JSON response' + ); });