浏览代码

Add phpdoc comment

Jordi Boggiano 8 年之前
父节点
当前提交
677e75d168
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Composer/Plugin/PluginManager.php

+ 4 - 0
src/Composer/Plugin/PluginManager.php

@@ -223,6 +223,10 @@ class PluginManager
     /**
      * Adds a plugin, activates it and registers it with the event dispatcher
      *
+     * Ideally plugin packages should be registered via registerPackage, but if you use Composer
+     * programmatically and want to register a plugin class directly this is a valid way
+     * to do it.
+     *
      * @param PluginInterface $plugin plugin instance
      */
     public function addPlugin(PluginInterface $plugin)