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
|
@@ 229-237 (lines=9) @@
|
226 |
|
* |
227 |
|
* @return Cache |
228 |
|
*/ |
229 |
|
private function getCache(Container $container, $cacheDefinition): Cache |
230 |
|
{ |
231 |
|
$cacheType = $cacheDefinition['type']; |
232 |
|
$cacheOptions = $cacheDefinition['options'] ?? []; |
233 |
|
|
234 |
|
$cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)]; |
235 |
|
|
236 |
|
return $cacheFactory($cacheOptions); |
237 |
|
} |
238 |
|
|
239 |
|
/** |
240 |
|
* @param Container $container |