8000 minor #17620 [FrameworkBundle] fix container cache key generation (xa… · symfony/symfony@9cdb207 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cdb207

Browse files
committed
minor #17620 [FrameworkBundle] fix container cache key generation (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [FrameworkBundle] fix container cache key generation | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | If the actual class name were not taken into, we would not be able to detect inconsistencies between the different configuration formats (PHP, YAML, and XML) as the container built based on the first evaluated configuration format would be cached and reused by tests for the other formats too. Commits ------- 29750e5 fix container cache key generation
2 parents 2c43532 + 29750e5 commit 9cdb207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ protected function createContainer(array $data = array())
309309

310310
protected function createContainerFromFile($file, $data = array())
311311
{
312-
$cacheKey = md5($file.serialize($data));
312+
$cacheKey = md5(get_class($this).$file.serialize($data));
313313
if (isset(self::$containerCache[$cacheKey])) {
314314
return self::$containerCache[$cacheKey];
315315
}

0 commit comments

Comments
 (0)
0