Commit 1c2d1e8e by Qiang Xue

Fixed alias path.

parent 1500f978
...@@ -95,9 +95,9 @@ class Installer extends LibraryInstaller ...@@ -95,9 +95,9 @@ class Installer extends LibraryInstaller
} }
$path = $fs->normalizePath($path); $path = $fs->normalizePath($path);
if (strpos($path . '/', $vendorDir . '/') === 0) { 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 { } else {
return "['@$name' => " . var_export($path, true) . ']'; return ["@$name" => $path . '/' . $name];
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment