SlimCMS\Helpers\ConfigWorker::makeCacheConfig PHP Method

makeCacheConfig() protected static method

protected static makeCacheConfig ( mixed $allConfig )
$allConfig mixed
    protected static function makeCacheConfig($allConfig)
    {
        $strData = var_export($allConfig, true);
        $content = sprintf('<?php ' . PHP_EOL . PHP_EOL . 'return %s;', $strData);
        if (!is_dir(self::$folders->cacheConfigPath)) {
            mkdir(self::$folders->cacheConfigPath);
        }
        file_put_contents(self::$folders->cacheConfigFile, $content);
    }