8000 bug #25733 [HttpKernel] Fix compile error when a legacy container is … · symfony/symfony@eac7e19 · GitHub
[go: up one dir, main page]

Skip to content

Commit eac7e19

Browse files
committed
bug #25733 [HttpKernel] Fix compile error when a legacy container is fresh again (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] Fix compile error when a legacy container is fresh again | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25654 | License | MIT | Doc PR | - Noticed by @jpauli again: when reverting some configuration changes ends up generating the same container as the previously legacy one, the legacy flag should be removed. Commits ------- 8c3eadb [HttpKernel] Fix compile error when a legacy container is fresh again
2 parents 5f05774 + 8c3eadb commit eac7e19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
851851
$fs->dumpFile($dir.$file, $code);
852852
@chmod($dir.$file, 0666 & ~umask());
853853
}
854+
@unlink(dirname($dir.$file).'.legacy');
854855

855856
$cache->write($rootCode, $container->getResources());
856857
}

0 commit comments

Comments
 (0)
0