Add debug output when a plugin is loaded
parent
c7b0628d93
commit
45b1f356c2
|
@ -79,6 +79,9 @@ class PluginManager
|
|||
*/
|
||||
public function addPlugin(PluginInterface $plugin)
|
||||
{
|
||||
if ($this->io->isDebug()) {
|
||||
$this->io->writeError('Loading plugin '.get_class($plugin));
|
||||
}
|
||||
$this->plugins[] = $plugin;
|
||||
$plugin->activate($this->composer, $this->io);
|
||||
|
||||
|
|
Loading…
Reference in New Issue