diff --git a/Classes/System/UserFunctions/FlexFormUserFunctions.php b/Classes/System/UserFunctions/FlexFormUserFunctions.php index 3087063f2b..136c32322e 100644 --- a/Classes/System/UserFunctions/FlexFormUserFunctions.php +++ b/Classes/System/UserFunctions/FlexFormUserFunctions.php @@ -26,6 +26,7 @@ use function str_starts_with; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface; +use TYPO3\CMS\Extbase\Object\ObjectManager; use TYPO3\CMS\Extbase\Utility\LocalizationUtility; /** @@ -209,7 +210,8 @@ protected function getConfigurationFromPageId(?int $pid = null): ?TypoScriptConf return null; } - $configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class); + /** @var ConfigurationManagerInterface $configurationManager */ + $configurationManager = GeneralUtility::makeInstance(ObjectManager::class)->get(ConfigurationManagerInterface::class); $typoScript = $configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); return GeneralUtility::makeInstance(TypoScriptConfiguration::class, $typoScript);