DDC-3078 - switching cache initialization to use cache instantiator from config
This commit is contained in:
parent
cd0f94dd6c
commit
87a907f9dd
@ -166,8 +166,8 @@ use Doctrine\Common\Util\ClassUtils;
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($config->isSecondLevelCacheEnabled()) {
|
if ($config->isSecondLevelCacheEnabled()) {
|
||||||
$cacheClass = $config->getSecondLevelCacheConfiguration()->getCacheClassName();
|
$cacheInstantiator = $config->getSecondLevelCacheConfiguration()->getCacheInstantiator();
|
||||||
$this->cache = new $cacheClass($this);
|
$this->cache = $cacheInstantiator($this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user