Issue Bug Rejected

#81722Extbase configurationManager does not return extension view/settings

Torben Hansen 06/27/17, 20:38 updated 07/24/17, 09:27

Description

In TYPO3 6.2 and 7.6, you could create an instance of the configurationManager (not the existing instance e.g. in a controller) to receive the configuration of an Extbase extension. The following code in e.g. a service class of an Extbase extension outputs the view and settings as expected on a TYPO3 7.6 website

/** @var ConfigurationManager $localConfigurationManager */
$localConfigurationManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ConfigurationManager::class);
$extbaseFrameworkConfiguration = $localConfigurationManager->getConfiguration(
    ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK
);
DebugUtility::debug($extbaseFrameworkConfiguration['view']);
DebugUtility::debug($extbaseFrameworkConfiguration['settings']);

The same code in the same context on a TYPO3 8.7 website does not output the view and settings

I can only get the view and settings on a TYPO3 8.7 website by passing the extensionkey to the getConfiguration() function like shown below

$extbaseFrameworkConfiguration = $localConfigurationManager->getConfiguration(
    ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK,
    'ExtensionKey'
);

I could not find anything related in the change logs for TYPO3 8.7. Is this expected behavior?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.