src/DoctrineDbalServiceProvider.php 1 location
|
@@ 199-207 (lines=9) @@
|
| 196 |
|
* |
| 197 |
|
* @return Cache |
| 198 |
|
*/ |
| 199 |
|
private function getCache(Container $container, $cacheDefinition): Cache |
| 200 |
|
{ |
| 201 |
|
$cacheType = $cacheDefinition['type']; |
| 202 |
|
$cacheOptions = $cacheDefinition['options'] ?? []; |
| 203 |
|
|
| 204 |
|
$cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)]; |
| 205 |
|
|
| 206 |
|
return $cacheFactory($cacheOptions); |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
/** |
| 210 |
|
* @param Container $container |
src/DoctrineOrmServiceProvider.php 1 location
|
@@ 223-231 (lines=9) @@
|
| 220 |
|
* |
| 221 |
|
* @return Cache |
| 222 |
|
*/ |
| 223 |
|
private function getCache(Container $container, $cacheDefinition): Cache |
| 224 |
|
{ |
| 225 |
|
$cacheType = $cacheDefinition['type']; |
| 226 |
|
$cacheOptions = $cacheDefinition['options'] ?? []; |
| 227 |
|
|
| 228 |
|
$cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)]; |
| 229 |
|
|
| 230 |
|
return $cacheFactory($cacheOptions); |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
/** |
| 234 |
|
* @param Container $container |