8000 bug #21552 [FrameworkBundle] Fix annotations cache folder path (akeeman) · symfony/symfony@81ad336 · GitHub
[go: up one dir, main page]

Skip to content

Commit 81ad336

Browse files
bug #21552 [FrameworkBundle] Fix annotations cache folder path (akeeman)
This PR was submitted for the master branch but it was merged into the 3.2 branch instead (closes #21552). Discussion ---------- [FrameworkBundle] Fix annotations cache folder path | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | n/a | Fixed tickets | n/a | License | MIT | Doc PR | n/a The argument at index 2 sets a cache path as it extends the file system adapter by default since e59f0e0, where it did set the version before that. This change now results in annotation cache folders showing up in the project root (because of the overwritten cache root folder). Because cache.annotations has a parent now, this line is not needed anymore and fixes the problem. Commits ------- 8e5cfa7 Fix annotations cache folder path
2 parents 7f79a50 + 8e5cfa7 commit 81ad336

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,6 @@ private function registerPropertyInfoConfiguration(array $config, ContainerBuild
12351235
private function registerCacheConfiguration(array $config, ContainerBuilder $container)
12361236
{
12371237
$version = substr(str_replace('/', '-', base64_encode(hash('sha256', uniqid(mt_rand(), true), true))), 0, 22);
1238-
$container->getDefinition('cache.annotations')->replaceArgument(2, $version);
12391238
$container->getDefinition('cache.adapter.apcu')->replaceArgument(2, $version);
12401239
$container->getDefinition('cache.adapter.system')->replaceArgument(2, $version);
12411240
$container->getDefinition('cache.adapter.filesystem')->replaceArgument(2, $config['directory']);

0 commit comments

Comments
 (0)
0