public function injectConfigurationManager(ConfigurationManagerInterface $configurationManager)
    {
        $this->configurationManager = $configurationManager;

        // get the whole typoscript (_FRAMEWORK does not work anymore, don't know why)
        $tsSettings = $this->configurationManager->getConfiguration(
            ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT,
            '',
            ''
        );

        // correct the array to be in same shape like the _SETTINGS array
        $tsSettings = $this->removeDots((array)$tsSettings['plugin.']['tx_ttaddress.']);

        // get original settings
        // original means: what extbase does by munching flexform and TypoScript together, but leaving empty flexform-settings empty ...
        $originalSettings = $this->configurationManager->getConfiguration(
            ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS
        );

        $propertiesNotAllowedViaFlexForms = ['orderByAllowed'];
        foreach ($propertiesNotAllowedViaFlexForms as $property) {
            $originalSettings[$property] = $tsSettings['settings'][$property];
        }

        // start override
        if (isset($tsSettings['settings']['overrideFlexformSettingsIfEmpty'])) {
            $typoScriptUtility = GeneralUtility::makeInstance(TypoScript::class);
            $originalSettings = $typoScriptUtility->override($originalSettings, $tsSettings);
        }
        // Re-set global settings
        $this->settings = $originalSettings;
    }
public function injectConfigurationManager(ConfigurationManagerInterface $configurationManager)
    {
        $this->configurationManager = $configurationManager;

        // get the whole typoscript (_FRAMEWORK does not work anymore, don't know why)
        $tsSettings = $this->configurationManager->getConfiguration(
            ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT,
            '',
            ''
        );

        // correct the array to be in same shape like the _SETTINGS array
        $tsSettings = $this->removeDots((array)$tsSettings['plugin.']['tx_ttaddress.']);

        // get original settings
        // original means: what extbase does by munching flexform and TypoScript together, but leaving empty flexform-settings empty ...
        $originalSettings = $this->configurationManager->getConfiguration(
            ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS
        );

        $propertiesNotAllowedViaFlexForms = ['orderByAllowed'];
        foreach ($propertiesNotAllowedViaFlexForms as $property) {
            $originalSettings[$property] = $tsSettings['settings'][$property];
        }

        // start override
        if (isset($tsSettings['settings']['overrideFlexformSettingsIfEmpty'])) {
            $typoScriptUtility = GeneralUtility::makeInstance(TypoScript::class);
            $originalSettings = $typoScriptUtility->override($originalSettings, $tsSettings);
        }
        // Re-set global settings
        $this->settings = $originalSettings;
    }
public function injectConfigurationManager ( ConfigurationManagerInterface $ configurationManager ) { $ this -> configurationManager = $ configurationManager ; // get the whole typoscript (_FRAMEWORK does not work anymore, don't know why) $ tsSettings = $ this -> configurationManager -> getConfiguration ( ConfigurationManagerInterface :: CONFIGURATION_TYPE_FULL_TYPOSCRIPT , '' , '' ) ; // correct the array to be in same shape like the _SETTINGS array $ tsSettings = $ this -> removeDots ( ( array ) $ tsSettings [ 'plugin.' ] [ 'tx_ttaddress.' ] ) ; // get original settings // original means: what extbase does by munching flexform and TypoScript together, but leaving empty flexform-settings empty ... $ originalSettings = $ this -> configurationManager -> getConfiguration ( ConfigurationManagerInterface :: CONFIGURATION_TYPE_SETTINGS ) ; $ propertiesNotAllowedViaFlexForms = [ 'orderByAllowed' ] ; foreach ( $ propertiesNotAllowedViaFlexForms as $ property ) { $ originalSettings [ $ property ] = $ tsSettings [ 'settings' ] [ $ property ] ; } // start override if ( isset ( $ tsSettings [ 'settings' ] [ 'overrideFlexformSettingsIfEmpty' ] ) ) { $ typoScriptUtility = GeneralUtility :: makeInstance ( TypoScript :: class ) ; $ originalSettings = $ typoScriptUtility -> override ( $ originalSettings , $ tsSettings ) ; } // Re-set global settings $ this -> settings = $ originalSettings ; }
Injects the Configuration Manager and is initializing the framework settings

@param ConfigurationManagerInterface $configurationManager Instance of the Configuration Manager
Injects the Configuration Manager and is initializing the framework settings