Commit d605864a by Qiang Xue

reverted 5425dc92

parent 8d680449
......@@ -113,11 +113,10 @@ class Installer extends LibraryInstaller
$path = $this->vendorDir . '/' . $package->getName() . '/' . $path;
}
$path = $fs->normalizePath($path);
$targetDir = $package->getTargetDir();
if (strpos($path . '/', $vendorDir . '/') === 0) {
$aliases["@$name"] = '<vendor-dir>' . ($targetDir === null ? '': '/' . $targetDir) . substr($path, strlen($vendorDir));
$aliases["@$name"] = '<vendor-dir>' . substr($path, strlen($vendorDir)) . '/' . $name;
} else {
$aliases["@$name"] = $path . ($targetDir === null ? '': '/' . $targetDir);
$aliases["@$name"] = $path . '/' . $name;
}
}
return $aliases;
......
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