This PR was merged into the 1.2-dev branch.
Discussion
----------
Add support for composer-plugin-api v2
Composer version 2 has `composer-plugin-api` version 2, and this plugin attemts to support both API 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 `\Symfony\Thanks\Thanks::deactivate()` and `\Symfony\Thanks\Thanks::uninstall()` are added to make it compatible both versions.
- On Composer v2, `\Hirak\Prestissimo\CurlRemoteFilesystem` is not used in favor of Composer's native `\Composer\Util\HttpDownloader` which make multiple Curl connections.
Related: #84 and composer/composer#8726.
`thanks` 🙏
Commits
-------
7502bef Add support for composer-plugin-api v2