浏览代码

Doc updates

Jordi Boggiano 5 年之前
父节点
当前提交
3d0d71367d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/Composer/Plugin/PluginInterface.php

+ 5 - 1
src/Composer/Plugin/PluginInterface.php

@@ -40,6 +40,10 @@ interface PluginInterface
     /**
      * Remove any hooks from Composer
      *
+     * This will be called when a plugin is deactivated before being
+     * uninstalled, but also before it gets upgraded to a new version
+     * so the old one can be deactivated and the new one activated.
+     *
      * @param Composer    $composer
      * @param IOInterface $io
      */
@@ -48,7 +52,7 @@ interface PluginInterface
     /**
      * Prepare the plugin to be uninstalled
      *
-     * This will be called after deactivate
+     * This will be called after deactivate.
      *
      * @param Composer    $composer
      * @param IOInterface $io