diff --git a/CHANGELOG.md b/CHANGELOG.md index d732b61..beefbc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fix an issue where a typo in ModuleInstaller prevented it from working properly. +- Fix an issue with missing basePath being treated as an absolute path. ## [0.0.1] - 2019-06-03 diff --git a/src/ComposerInstaller/BaseInstaller.php b/src/ComposerInstaller/BaseInstaller.php index f4ad6e9..99cf07f 100644 --- a/src/ComposerInstaller/BaseInstaller.php +++ b/src/ComposerInstaller/BaseInstaller.php @@ -54,6 +54,12 @@ protected function getBasePath($defaultBasePath) { $type = strtolower(preg_replace('/(?getBasePath($defaultBasePath); $name = $this->getName($package); - $path = trim($basePath, '/') . '/' . $name; - return $path; + return $basePath . $name; } }