Skip to content

Commit

Permalink
[HttpKernel] fix wrong removal of the just generated container dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Oct 20, 2019
1 parent a054d88 commit 4ad09eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Kernel.php
Expand Up @@ -868,7 +868,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
$fs->dumpFile($dir.$file, $code);
@chmod($dir.$file, 0666 & ~umask());
}
$legacyFile = \dirname($dir.$file).'.legacy';
$legacyFile = \dirname($dir.key($content)).'.legacy';
if (file_exists($legacyFile)) {
@unlink($legacyFile);
}
Expand Down

0 comments on commit 4ad09eb

Please sign in to comment.