From 677e75d1682fa3855011448b757dd3a0edb2841a Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 7 Jan 2017 17:36:47 +0100 Subject: [PATCH] Add phpdoc comment --- src/Composer/Plugin/PluginManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Plugin/PluginManager.php b/src/Composer/Plugin/PluginManager.php index 2f09d789f..bb67e03a6 100644 --- a/src/Composer/Plugin/PluginManager.php +++ b/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)