Skip to content

Commit

Permalink
Merge branch 'release/3.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
JParkinson1991 committed Apr 29, 2022
2 parents 0d67698 + d9698ed commit 38b0ae9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
- '8.0'
- '8.1'
composer-version:
- v1
- v2
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Any linked package will still exist within the composer vendor directory as well
### Requirements

- A composer based PHP project.
- Composer `^2.3.5`
- PHP `^7.3 || ^8.0`

### Installing
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"prefer-stable": true,
"require": {
"php": "^7.3 || ^8.0 ",
"composer-plugin-api": "^1.1 || ^2.0",
"composer-plugin-api": "^2.0",
"symfony/filesystem": ">=3.0"
},
"require-dev": {
"ext-uopz": "*",
"codedungeon/phpunit-result-printer": "^0.32.0",
"composer/composer": "^1.10.26 || ^2.3.5",
"composer/composer": "^2.3.5",
"composer/package-versions-deprecated": "^1.11.99.3",
"jparkinson1991/phpcodesniffer-standards": "^1.3",
"php-coveralls/php-coveralls": "^2.2",
Expand Down
18 changes: 16 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/Composer/Plugin/ComposerLinkerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ public function getCapabilities(): array
public static function getSubscribedEvents(): array
{
return [
PackageEvents::POST_PACKAGE_INSTALL => ['initPlugin', 'linkPackageFromEvent'],
PackageEvents::POST_PACKAGE_INSTALL => [
['initPlugin'],
['linkPackageFromEvent']
],
PackageEvents::POST_PACKAGE_UPDATE => 'linkPackageFromEvent',
PackageEvents::PRE_PACKAGE_UNINSTALL => 'cleanUpPlugin',
PackageEvents::POST_PACKAGE_UNINSTALL => 'unlinkPackageFromEvent'
Expand Down

0 comments on commit 38b0ae9

Please sign in to comment.