Skip to content

Commit

Permalink
bug #25121 [FrameworkBundle] Fix AssetsInstallCommand (nicolas-grekas)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] Fix AssetsInstallCommand

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25106
| License       | MIT
| Doc PR        | -

Fixes a deprecation notice on 3.4, and a failure on 4.0.

Commits
-------

a84efa7 [FrameworkBundle] Fix AssetsInstallCommand
  • Loading branch information
nicolas-grekas committed Nov 23, 2017
2 parents 6fc5967 + a84efa7 commit 7a70077
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -262,6 +262,7 @@ private function absoluteSymlinkWithFallback($originDir, $targetDir)
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);
Expand Down

0 comments on commit 7a70077

Please sign in to comment.