Networking\InitCmsBundle\Lib\PhpCache::__construct PHP Method

__construct() public method

public __construct ( string $type = '', string $rootDir = '', string $env = '', boolean $active = false, string $cacheTime = '', null $securityKey = null )
$type string
$rootDir string
$env string
$active boolean
$cacheTime string
$securityKey null possibilities are auto (domain name), a string or null
    public function __construct($type = '', $rootDir = '', $env = '', $active = false, $cacheTime = '', $securityKey = null)
    {
        $this->env = $env;
        $this->cacheDir = $this->createDir($rootDir, $env);
        $this->active = $active;
        $this->cacheTime = $cacheTime;
        if (is_null($securityKey)) {
            $securityKey = 'cache.storage.' . sha1(__FILE__);
        }
        phpFastCache::setup("storage", $type);
        phpFastCache::setup("path", $this->cacheDir);
        phpFastCache::setup("securityKey", $securityKey);
        $this->phpFastCache = new phpFastCache($type);
    }