Skip to content

Commit

Permalink
Remove double registration of the event listeners
Browse files Browse the repository at this point in the history
Composer already registers listeners when the plugin class implements EventSubscriberInterface
  • Loading branch information
stof committed Jul 22, 2016
1 parent b300ac2 commit e540183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PackageVersions/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static function getVersion(string $packageName) : string
*/
public function activate(Composer $composer, IOInterface $io)
{
$composer->getEventDispatcher()->addSubscriber($this);
// Nothing to do here, as all features are provided through event listeners
}

/**
Expand Down

0 comments on commit e540183

Please sign in to comment.