1
0
Fork 0

Add phpdoc comment

pull/6053/head
Jordi Boggiano 2017-01-07 17:36:47 +01:00
parent 5f64cae860
commit 677e75d168
1 changed files with 4 additions and 0 deletions

View File

@ -223,6 +223,10 @@ class PluginManager
/** /**
* Adds a plugin, activates it and registers it with the event dispatcher * 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 * @param PluginInterface $plugin plugin instance
*/ */
public function addPlugin(PluginInterface $plugin) public function addPlugin(PluginInterface $plugin)