This commit is contained in:
Qiang Xue
2013-11-02 23:27:26 -04:00
parent eb39d1ffc3
commit 513037d97d
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ 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>/' . substr($path, strlen($vendorDir)) . '/' . $name]; return ["@$name" => '<vendor-dir>' . substr($path, strlen($vendorDir)) . '/' . $name];
} else { } else {
return ["@$name" => $path . '/' . $name]; return ["@$name" => $path . '/' . $name];
} }

View File

@ -29,7 +29,7 @@ class Plugin implements PluginInterface
$file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yiisoft/extensions.php'; $file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yiisoft/extensions.php';
if (!is_file($file)) { if (!is_file($file)) {
@mkdir(dirname($file)); @mkdir(dirname($file));
file_put_contents($file, "<?php\nreturn [];\n"); file_put_contents($file, "<?php\n\nreturn [];\n");
} }
} }
} }