Skip to content

Commit de3a25a

Browse files
committed
minor symfony#25257 [link] clear the cache after linking (dunglas)
This PR was squashed before being merged into the 2.7 branch (closes symfony#25257). Discussion ---------- [link] clear the cache after linking | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Clearing the cache after linking prevents fatal errors when a container already exists. Commits ------- 05c3c81 [link] clear the cache after linking
2 parents 7f5aeb7 + 05c3c81 commit de3a25a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

link

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ foreach (glob("$argv[1]/vendor/symfony/*", GLOB_ONLYDIR | GLOB_NOSORT) as $dir)
6060
$filesystem->symlink($sfDir, $dir);
6161
echo "\"$package\" has been linked to \"$sfPackages[$package]\".".PHP_EOL;
6262
}
63+
64+
foreach (glob("$argv[1]/var/cache/*") as $cacheDir) {
65+
$filesystem->remove($cacheDir);
66+
}

0 commit comments

Comments
 (0)