You are here

public function Store::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/HttpCache/Store.php \Symfony\Component\HttpKernel\HttpCache\Store::__construct()

Constructor.

Parameters

string $root The path to the cache directory:

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 36

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function __construct($root) {
  $this->root = $root;
  if (!is_dir($this->root)) {
    mkdir($this->root, 0777, true);
  }
  $this->keyCache = new \SplObjectStorage();
  $this->locks = array();
}