Skip to content

Commit 02670bb

Browse files
author
Hajo Seng
committed
changed install path
1 parent e5e61b6 commit 02670bb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"type": "composer-plugin",
1111
"autoload": {
12-
"psr-4": {
13-
"Hajoseng\\Composer\\": "hajoseng/module-installer-plugin/src/"
12+
"psr-0": {
13+
"Hajoseng\\Composer\\": "src/"
1414
}
1515
},
1616
"extra": {

src/Hajoseng/Composer/ModuleInstaller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ class ModuleInstaller extends LibraryInstaller
99
{
1010
public function getInstallPath(PackageInterface $package)
1111
{
12-
return '.';
13-
/*
12+
// return '.';
13+
1414
$extra = $package->getExtra();
1515
if (isset($extra['moduleName']) && $extra['moduleName'] != '') {
1616
return 'module/'.$extra['moduleName'];
1717
}
1818
return 'module';
19-
*/
19+
2020
}
2121

2222
public function supports($packageType)

0 commit comments

Comments
 (0)