Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 864a58f

Browse filesBrowse files
committed
bug #16173 [FrameworkBundle] Replace PhpFileCache by FilesystemCache (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [FrameworkBundle] Replace PhpFileCache by FilesystemCache | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16168 | License | MIT | Doc PR | - Commits ------- a6cb1c0 [FrameworkBundle] Replace PhpFileCache by FilesystemCache
2 parents 491c12c + a6cb1c0 commit 864a58f
Copy full SHA for 864a58f

File tree

Expand file treeCollapse file tree

3 files changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+5
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+2-2Lines 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');

‎src/Symfony/Bundle/FrameworkBundle/Resources/config/annotations.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/config/annotations.xml
+1-1Lines 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

‎src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.