Skip to content

Commit

Permalink
changed install path
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajo Seng committed Mar 3, 2022
1 parent e5e61b6 commit 02670bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"type": "composer-plugin",
"autoload": {
"psr-4": {
"Hajoseng\\Composer\\": "hajoseng/module-installer-plugin/src/"
"psr-0": {
"Hajoseng\\Composer\\": "src/"
}
},
"extra": {
Expand Down
6 changes: 3 additions & 3 deletions src/Hajoseng/Composer/ModuleInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 02670bb

Please sign in to comment.