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 eac7e19

Browse filesBrowse 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
Copy full SHA for eac7e19

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎src/Symfony/Component/HttpKernel/Kernel.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Kernel.php
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.