Skip to content

Commit

Permalink
Merge pull request #1 from wireframe-framework/feature-multiple-pw-mo…
Browse files Browse the repository at this point in the history
…dule-installers

Fix compatibility issue when multiple pw-module installers are enabled
  • Loading branch information
teppokoivula authored Oct 19, 2020
2 parents 5d398e4 + 7e3c90a commit 15967c1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.3] - 2020-10-20

### Fixed
- Improved compatibility when both wireframe-framework/processwire-composer-installer and hari/pw-module are enabled.

## [1.0.2] - 2019-07-11

### Added
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"hari/pw-module": "^1.0.0"
},
"autoload": {
"psr-0": {
"PW\\Composer\\": "src/"
},
"psr-4": {
"wireframe\\": "src/"
}
Expand Down
12 changes: 12 additions & 0 deletions src/PW/Composer/SystemInstaller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace PW\Composer;

/**
* Compatibility layer for the PW\Composer\SystemInstaller class from hari/pw-module
*
* wireframe-framework/processwire-composer-installer and hari/pw-module are not fully compatible,
* which means that when wireframe-framework/processwire-composer-installer is enabled, we need to
* disable hari/pw-module.
*/
class SystemInstaller extends \wireframe\ComposerInstaller\BaseInstaller {}

0 comments on commit 15967c1

Please sign in to comment.