Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Composer version 2 has `composer-plugin-api` version 2. This PR updates the version constraint to `^1 || ^2` so we can support both composer versions. See [What's new in Composer 2](https://php.watch/articles/composer-2) and [UPGRADE-2.0](https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#for-integrators-and-plugin-authors) for more changes in API. Empty methods \cweagans\Composer\Plugin\Patches::deactivate() and \cweagans\Composer\Plugin\Patches::uninstall are added to make it compatible both versions.
- Loading branch information
7ee3bb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we get a new release of composer-patches 1.x? we would love to use this plugin with composer v2 :-)
7ee3bb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@staabm if you need Composer 2 support, I recommend using 1.x-dev for the time being. I'm not completely convinced that this is all that is needed to support Composer 2, so having some real usage with it would be great.