You are here

public function DoctrineCache::setCache in Plug 7

Sets the cache to adapt.

Parameters

Cache $cache The cache to adapt:

File

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

Class

DoctrineCache
Adapts a Doctrine cache to a CacheInterface.

Namespace

Symfony\Component\Validator\Mapping\Cache

Code

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