diff --git a/composer.json b/composer.json index 917765b..5730366 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,8 @@ }, "type": "composer-plugin", "autoload": { - "psr-4": { - "Hajoseng\\Composer\\": "hajoseng/module-installer-plugin/src/" + "psr-0": { + "Hajoseng\\Composer\\": "src/" } }, "extra": { diff --git a/src/Hajoseng/Composer/ModuleInstaller.php b/src/Hajoseng/Composer/ModuleInstaller.php index 0069882..82546ff 100644 --- a/src/Hajoseng/Composer/ModuleInstaller.php +++ b/src/Hajoseng/Composer/ModuleInstaller.php @@ -9,14 +9,14 @@ class ModuleInstaller extends LibraryInstaller { public function getInstallPath(PackageInterface $package) { - return '.'; -/* +// return '.'; + $extra = $package->getExtra(); if (isset($extra['moduleName']) && $extra['moduleName'] != '') { return 'module/'.$extra['moduleName']; } return 'module'; -*/ + } public function supports($packageType)