The version needs to be added in the PRE_PACKAGE_INSTALL/UPDATE
event to make sure that different version save different urls
in composer.lock. Composer would load any available version from cache
although the version numbers might differ (because they have the same
url).
public addVersion ( Composer\Installer\PackageEvent $event ) | ||
$event | Composer\Installer\PackageEvent | The event that called the method |