src/ServiceProvider/DoctrineDbalServiceProvider.php 1 location
|
@@ 168-176 (lines=9) @@
|
165 |
|
}; |
166 |
|
} |
167 |
|
|
168 |
|
private function getCache(Container $container, array $cacheDefinition): Cache |
169 |
|
{ |
170 |
|
$cacheType = $cacheDefinition['type']; |
171 |
|
$cacheOptions = $cacheDefinition['options'] ?? []; |
172 |
|
|
173 |
|
$cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)]; |
174 |
|
|
175 |
|
return $cacheFactory($cacheOptions); |
176 |
|
} |
177 |
|
|
178 |
|
private function getDbsEventManagerDefinition(Container $container): callable |
179 |
|
{ |
src/ServiceProvider/DoctrineOrmServiceProvider.php 1 location
|
@@ 217-225 (lines=9) @@
|
214 |
|
}; |
215 |
|
} |
216 |
|
|
217 |
|
private function getCache(Container $container, array $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 |
|
private function assignSecondLevelCache(Container $container, Configuration $config, array $options): void |
228 |
|
{ |