1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00

Turn EventDispatcher into generic solution handling plugins as well

This commit is contained in:
Nils Adermann 2013-08-14 17:42:11 +02:00
parent 2f43e9aefb
commit 3960edd64e
17 changed files with 320 additions and 68 deletions

View file

@ -64,6 +64,10 @@ class PluginManager
{
$this->plugins[] = $plugin;
$plugin->activate($this->composer);
if ($plugin instanceof \Symfony\Component\EventDispatcher\EventSubscriberInterface) {
$this->composer->getPluginEventDispatcher()->addSubscriber($plugin);
}
}
public function getPlugins()