Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Mapping/Cache/DoctrineCache.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
21 */ | 21 */ |
22 final class DoctrineCache implements CacheInterface | 22 final class DoctrineCache implements CacheInterface |
23 { | 23 { |
24 private $cache; | 24 private $cache; |
25 | 25 |
26 /** | |
27 * Creates a new Doctrine cache. | |
28 * | |
29 * @param Cache $cache The cache to adapt | |
30 */ | |
31 public function __construct(Cache $cache) | 26 public function __construct(Cache $cache) |
32 { | 27 { |
33 $this->cache = $cache; | 28 $this->cache = $cache; |
34 } | 29 } |
35 | 30 |
36 /** | |
37 * Sets the cache to adapt. | |
38 * | |
39 * @param Cache $cache The cache to adapt | |
40 */ | |
41 public function setCache(Cache $cache) | 31 public function setCache(Cache $cache) |
42 { | 32 { |
43 $this->cache = $cache; | 33 $this->cache = $cache; |
44 } | 34 } |
45 | 35 |