You are here

public function DoctrineCache::__construct in Plug 7

Creates a new Doctrine cache.

Parameters

Cache $cache The cache to adapt:

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/Cache/DoctrineCache.php, line 31

Class

DoctrineCache
Adapts a Doctrine cache to a CacheInterface.

Namespace

Symfony\Component\Validator\Mapping\Cache

Code

public function __construct(Cache $cache) {
  $this->cache = $cache;
}