Project

General

Profile

Actions

Bug #81722

closed

Extbase configurationManager does not return extension view/settings

Added by Torben Hansen over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-06-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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?

Actions

Also available in: Atom PDF