[TYPO3-german] extbase: setConfiguration klappt nicht

Alex Mersdorf mersdorf at waldhart.at
Wed Jan 4 22:01:17 CET 2017


Ich schände mal Leichen, habe aber das gleiche Problem, nur in einem Command Controller

        $this->settings = $this->configurationManager->getConfiguration(
            \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 'wsshop'
        );
        echo("old: " . $this->settings['persistence']['storagePid'] . "\n");
        var_dump($this->settings['persistence']['storagePid']);
        $check = getNewPid();
        $this->settings['persistence']['storagePid'] = intval($check);
        echo("new: ".$this->settings['persistence']['storagePid'] . "\n");
        var_dump($this->settings['persistence']['storagePid']);
        $this->configurationManager->setConfiguration(
            $this->settings
        );
        $this->settings = NULL;
        $this->settings = $this->configurationManager->getConfiguration(
            \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 'wsshop'
        );
        echo("check: " . $this->settings['persistence']['storagePid'] . "\n");

Der Log ist:
old: 1
int(1)
new: 25
int(25)
check: 1

Habe das mit deiner Lösung abgeglichen, finde aber keine Unterschiede, bis auf Command- bzw. ActionController


More information about the TYPO3-german mailing list