8000 [Framework] Remove redundant cache service · symfony/symfony@3b197fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b197fe

Browse files
committed
[Framework] Remove redundant cache service
1 parent 6c84cc8 commit 3b197fe

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
15551555
$container->setDefinition('annotations.cached_reader', $container->getDefinition('annotations.psr_cached_reader'));
15561556

15571557
if ('php_array' === $config['cache']) {
1558-
$cacheService = 'annotations.psr_cache';
1558+
$cacheService = 'annotations.cache_adapter';
15591559

15601560
// Enable warmer only if PHP array is used for cache
15611561
$definition = $container->findDefinition('annotations.cache_warmer');

src/Symfony/Bundle/FrameworkBundle/Resources/config/annotations.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@
6868
param('kernel.cache_dir').'/annotations.php',
6969
service('cache.annotations'),
7070
])
71+
->tag('container.hot_path')
7172

7273
->set('annotations.cache', DoctrineProvider::class)
7374
->args([
74-
service('annotations.cache_adapter')
75+
service('annotations.cache_adapter'),
7576
])
7677
->tag('container.hot_path')
7778

@@ -86,13 +87,6 @@
8687
inline_service(ArrayAdapter::class),
8788
abstract_arg('Debug-Flag'),
8889
])
89-
->set('annotations.psr_cache', PhpArrayAdapter::class)
90-
->factory([PhpArrayAdapter::class, 'create'])
66C0 91-
->args([
92-
param('kernel.cache_dir').'/annotations.php',
93-
service('cache.annotations'),
94-
])
95-
->tag('container.hot_path')
9690
;
9791
}
9892
};

0 commit comments

Comments
 (0)
0