public function createLocalConfigurationFromFactoryConfiguration()
    {
        if (file_exists($this->getLocalConfigurationFileLocation())) {
            throw new \RuntimeException(
                'LocalConfiguration.php exists already',
                1364836026
            );
        }
        $localConfigurationArray = require $this->getFactoryConfigurationFileLocation();
        $additionalFactoryConfigurationFileLocation = $this->getAdditionalFactoryConfigurationFileLocation();
        if (file_exists($additionalFactoryConfigurationFileLocation)) {
            $additionalFactoryConfigurationArray = require $additionalFactoryConfigurationFileLocation;
            ArrayUtility::mergeRecursiveWithOverrule(
                $localConfigurationArray,
                $additionalFactoryConfigurationArray
            );
        }
        $randomKey = GeneralUtility::makeInstance(Random::class)->generateRandomHexString(96);
        $localConfigurationArray['SYS']['encryptionKey'] = $randomKey;
        $this->writeLocalConfiguration($localConfigurationArray);
    }
public function createLocalConfigurationFromFactoryConfiguration()
    {
        if (file_exists($this->getLocalConfigurationFileLocation())) {
            throw new \RuntimeException(
                'LocalConfiguration.php exists already',
                1364836026
            );
        }
        $localConfigurationArray = require $this->getFactoryConfigurationFileLocation();
        $additionalFactoryConfigurationFileLocation = $this->getAdditionalFactoryConfigurationFileLocation();
        if (file_exists($additionalFactoryConfigurationFileLocation)) {
            $additionalFactoryConfigurationArray = require $additionalFactoryConfigurationFileLocation;
            ArrayUtility::mergeRecursiveWithOverrule(
                $localConfigurationArray,
                $additionalFactoryConfigurationArray
            );
        }
        $randomKey = GeneralUtility::makeInstance(Random::class)->generateRandomHexString(96);
        $localConfigurationArray['SYS']['encryptionKey'] = $randomKey;
        $this->writeLocalConfiguration($localConfigurationArray);
    }
public function createLocalConfigurationFromFactoryConfiguration ( ) { if ( file_exists ( $ this -> getLocalConfigurationFileLocation ( ) ) ) { throw new \ RuntimeException ( 'LocalConfiguration.php exists already' , 1364836026 ) ; } $ localConfigurationArray = require $ this -> getFactoryConfigurationFileLocation ( ) ; $ additionalFactoryConfigurationFileLocation = $ this -> getAdditionalFactoryConfigurationFileLocation ( ) ; if ( file_exists ( $ additionalFactoryConfigurationFileLocation ) ) { $ additionalFactoryConfigurationArray = require $ additionalFactoryConfigurationFileLocation ; ArrayUtility :: mergeRecursiveWithOverrule ( $ localConfigurationArray , $ additionalFactoryConfigurationArray ) ; } $ randomKey = GeneralUtility :: makeInstance ( Random :: class ) -> generateRandomHexString ( 96 ) ; $ localConfigurationArray [ 'SYS' ] [ 'encryptionKey' ] = $ randomKey ; $ this -> writeLocalConfiguration ( $ localConfigurationArray ) ; }
Uses FactoryConfiguration file and a possible AdditionalFactoryConfiguration
file in typo3conf to create a basic LocalConfiguration.php. This is used
by the install tool in an early step.

@throws \RuntimeException
@internal
Uses FactoryConfiguration file and a possible AdditionalFactoryConfiguration file in typo3conf to create a basic LocalConfiguration . php . This is used by the install tool in an early step .