[FrameworkBundle] Fix AssetsInstallCommand

This commit is contained in:
Nicolas Grekas 2017-11-22 18:21:48 +01:00
parent 259ac66c25
commit a84efa7058

View File

@ -262,6 +262,7 @@ EOT
private function symlink($originDir, $targetDir, $relative = false)
{
if ($relative) {
$this->filesystem->mkdir(dirname($targetDir));
$originDir = $this->filesystem->makePathRelative($originDir, realpath(dirname($targetDir)));
}
$this->filesystem->symlink($originDir, $targetDir);