src/ServiceProvider/DoctrineDbalServiceProvider.php 1 location
|
@@ 217-225 (lines=9) @@
|
214 |
|
* |
215 |
|
* @return Cache |
216 |
|
*/ |
217 |
|
private function getCache(Container $container, $cacheDefinition): Cache |
218 |
|
{ |
219 |
|
$cacheType = $cacheDefinition['type']; |
220 |
|
$cacheOptions = $cacheDefinition['options'] ?? []; |
221 |
|
|
222 |
|
$cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)]; |
223 |
|
|
224 |
|
return $cacheFactory($cacheOptions); |
225 |
|
} |
226 |
|
|
227 |
|
/** |
228 |
|
* @param Container $container |
src/ServiceProvider/DoctrineOrmServiceProvider.php 1 location
|
@@ 248-256 (lines=9) @@
|
245 |
|
* |
246 |
|
* @return Cache |
247 |
|
*/ |
248 |
|
private function getCache(Container $container, $cacheDefinition): Cache |
249 |
|
{ |
250 |
|
$cacheType = $cacheDefinition['type']; |
251 |
|
$cacheOptions = $cacheDefinition['options'] ?? []; |
252 |
|
|
253 |
|
$cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)]; |
254 |
|
|
255 |
|
return $cacheFactory($cacheOptions); |
256 |
|
} |
257 |
|
|
258 |
|
/** |
259 |
|
* @param Container $container |