Skip to content

Commit fbb5bb8

Browse files
[FrameworkBundle] Replace PhpFileCache by FilesystemCache
1 parent 24d6a6e commit fbb5bb8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
849849
}
850850

851851
$container
852-
->getDefinition('annotations.php_file_cache')
852+
->getDefinition('annotations.filesystem_cache')
853853
->replaceArgument(0, $cacheDir)
854854
;
855855

@@ -863,7 +863,7 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
863863

864864
$container
865865
->getDefinition('annotations.cached_reader')
866-
->replaceArgument(1, new Reference('file' !== $config['cache'] ? $config['cache'] : 'annotations.php_file_cache'))
866+
->replaceArgument(1, new Reference('file' !== $config['cache'] ? $config['cache'] : 'annotations.filesystem_cache'))
867867
->replaceArgument(2, $config['debug'])
868868
;
869869
$container->setAlias('annotation_reader', 'annotations.cached_reader');

Resources/config/annotations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<argument /><!-- Debug-Flag -->
2020
</service>
2121

22-
<service id="annotations.php_file_cache" class="Doctrine\Common\Cache\PhpFileCache" public="false">
22+
<service id="annotations.filesystem_cache" class="Doctrine\Common\Cache\FilesystemCache" public="false">
2323
<argument /><!-- Cache-Directory -->
2424
</service>
2525

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ public function testAnnotations()
321321
{
322322
$container = $this->createContainerFromFile('full');
323323

324-
$this->assertEquals($container->getParameter('kernel.cache_dir').'/annotations', $container->getDefinition('annotations.php_file_cache')->getArgument(0));
324+
$this->assertEquals($container->getParameter('kernel.cache_dir').'/annotations', $container->getDefinition('annotations.filesystem_cache')->getArgument(0));
325325
$this->assertSame('annotations.cached_reader', (string) $container->getAlias('annotation_reader'));
326-
$this->assertSame('annotations.php_file_cache', (string) $container->getDefinition('annotations.cached_reader')->getArgument(1));
326+
$this->assertSame('annotations.filesystem_cache', (string) $container->getDefinition('annotations.cached_reader')->getArgument(1));
327327
}
328328

329329
public function testFileLinkFormat()

0 commit comments

Comments
 (0)