Skip to content

Commit 6ca5048

Browse files
committed
Attempt to fix issues caused by multiple enabled pw-module installers
1 parent 5d398e4 commit 6ca5048

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"hari/pw-module": "^1.0.0"
1818
},
1919
"autoload": {
20+
"psr-0": {
21+
"PW\\Composer\\": "src/"
22+
},
2023
"psr-4": {
2124
"wireframe\\": "src/"
2225
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace PW\Composer;
4+
5+
/**
6+
* Compatibility layer for the PW\Composer\SystemInstaller class from hari/pw-module
7+
*
8+
* wireframe-framework/processwire-composer-installer and hari/pw-module are not fully compatible,
9+
* which means that when wireframe-framework/processwire-composer-installer is enabled, we need to
10+
* disable hari/pw-module.
11+
*/
12+
class SystemInstaller extends \wireframe\ComposerInstaller\BaseInstaller {}

0 commit comments

Comments
 (0)