Browse Source

Doc updates

Jordi Boggiano 5 năm trước cách đây
mục cha
commit
3d0d71367d
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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