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:
parent
2f43e9aefb
commit
3960edd64e
17 changed files with 320 additions and 68 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue