protected function saveConfigurationCache()
    {
        // Make sure that all configuration types are loaded before writing configuration caches.
        foreach (array_keys($this->configurationTypes) as $configurationType) {
            if (!isset($this->unprocessedConfiguration[$configurationType]) || !is_array($this->unprocessedConfiguration[$configurationType])) {
                $this->loadConfiguration($configurationType, $this->packages);
            }
        }

        if ($this->temporaryDirectoryPath === null) {
            return;
        }

        $cachePathAndFilename = $this->constructConfigurationCachePath();
        if (!file_exists(dirname($cachePathAndFilename))) {
            Files::createDirectoryRecursively(dirname($cachePathAndFilename));
        }

        file_put_contents($cachePathAndFilename, '<?php return ' . $this->replaceVariablesInPhpString(var_export($this->unprocessedConfiguration, true)) . ';');
        OpcodeCacheHelper::clearAllActive($cachePathAndFilename);
        $this->cacheNeedsUpdate = false;
    }
protected function saveConfigurationCache()
    {
        // Make sure that all configuration types are loaded before writing configuration caches.
        foreach (array_keys($this->configurationTypes) as $configurationType) {
            if (!isset($this->unprocessedConfiguration[$configurationType]) || !is_array($this->unprocessedConfiguration[$configurationType])) {
                $this->loadConfiguration($configurationType, $this->packages);
            }
        }

        if ($this->temporaryDirectoryPath === null) {
            return;
        }

        $cachePathAndFilename = $this->constructConfigurationCachePath();
        if (!file_exists(dirname($cachePathAndFilename))) {
            Files::createDirectoryRecursively(dirname($cachePathAndFilename));
        }

        file_put_contents($cachePathAndFilename, '<?php return ' . $this->replaceVariablesInPhpString(var_export($this->unprocessedConfiguration, true)) . ';');
        OpcodeCacheHelper::clearAllActive($cachePathAndFilename);
        $this->cacheNeedsUpdate = false;
    }
protected function saveConfigurationCache ( ) { // Make sure that all configuration types are loaded before writing configuration caches. foreach ( array_keys ( $ this -> configurationTypes ) as $ configurationType ) { if ( ! isset ( $ this -> unprocessedConfiguration [ $ configurationType ] ) || ! is_array ( $ this -> unprocessedConfiguration [ $ configurationType ] ) ) { $ this -> loadConfiguration ( $ configurationType , $ this -> packages ) ; } } if ( $ this -> temporaryDirectoryPath === null ) { return ; } $ cachePathAndFilename = $ this -> constructConfigurationCachePath ( ) ; if ( ! file_exists ( dirname ( $ cachePathAndFilename ) ) ) { Files :: createDirectoryRecursively ( dirname ( $ cachePathAndFilename ) ) ; } file_put_contents ( $ cachePathAndFilename , '<?php return ' . $ this -> replaceVariablesInPhpString ( var_export ( $ this -> unprocessedConfiguration , true ) ) . ';' ) ; OpcodeCacheHelper :: clearAllActive ( $ cachePathAndFilename ) ; $ this -> cacheNeedsUpdate = false ; }
Saves the current configuration into a cache file and creates a cache inclusion script
in the context's Configuration directory.

@return void
@throws Exception
Saves the current configuration into a cache file and creates a cache inclusion script in the context s Configuration directory .