1
0
mirror of synced 2025-01-19 06:51:40 +03:00

DDC-3078 - switching cache initialization to use cache instantiator from config

This commit is contained in:
Marco Pivetta 2014-04-10 03:14:39 +02:00 committed by fabios
parent cd0f94dd6c
commit 87a907f9dd

View File

@ -166,8 +166,8 @@ use Doctrine\Common\Util\ClassUtils;
);
if ($config->isSecondLevelCacheEnabled()) {
$cacheClass = $config->getSecondLevelCacheConfiguration()->getCacheClassName();
$this->cache = new $cacheClass($this);
$cacheInstantiator = $config->getSecondLevelCacheConfiguration()->getCacheInstantiator();
$this->cache = $cacheInstantiator($this);
}
}