Skip to content

Commit

Permalink
Fixed alias path.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Nov 3, 2013
1 parent 1500f97 commit 1c2d1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/composer/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ protected function generateDefaultAlias(PackageInterface $package)
}
$path = $fs->normalizePath($path);
if (strpos($path . '/', $vendorDir . '/') === 0) {
return "['@$name' => '<vendor-dir>/" . ltrim(var_export(substr($path, strlen($vendorDir)), true), "'") . "']";
return ["@$name" => '<vendor-dir>/' . substr($path, strlen($vendorDir))] . '/' . $name;
} else {
return "['@$name' => " . var_export($path, true) . ']';
return ["@$name" => $path . '/' . $name];
}
}
}
Expand Down

0 comments on commit 1c2d1e8

Please sign in to comment.