From 831271eaf9a7bf2ecdf229fd8461bd56d1999d4f Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Tue, 14 Apr 2020 21:51:58 +0200 Subject: [PATCH] Remove getVersion() reference from upgrading guide for plugins It returns the Composer version, but you want to compare plugin api version. --- UPGRADE-2.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index 618d311fc..eb4acc53f 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -11,7 +11,7 @@ ## For integrators and plugin authors -- composer-plugin-api has been bumped to 2.0.0 - you can detect which version of Composer you run via `PluginInterface::PLUGIN_API_VERSION`, or use `version_compare` with `Composer\Composer::getVersion()` (available since Composer 1.8.5) +- composer-plugin-api has been bumped to 2.0.0 - you can detect which version of Composer you run via `PluginInterface::PLUGIN_API_VERSION` - `PluginInterface` added a deactivate (so plugin can stop whatever it is doing) and an uninstall (so the plugin can remove any files it created or do general cleanup) method. - Plugins implementing `EventSubscriberInterface` will be deregistered from the EventDispatcher automatically when being deactivated, nothing to do there. - `Pool` objects are now created via the `RepositorySet` class, you should use that in case you were using the `Pool` class directly.