Ocramius / PackageVersions

:package: Composer addon to efficiently get installed packages' version numbers
MIT License
3.22k stars 67 forks source link

the POST_AUTOLOAD_DUMP event also happens on composer install/update #95

Closed staabm closed 5 years ago

staabm commented 5 years ago

no need to subscribe to install/update and autoload-dump.

fixes https://github.com/Ocramius/PackageVersions/issues/94

staabm commented 5 years ago

my local tests seem to suggest that "composer install" and "composer update" also emit a "post-autoload" event.

tested on composer 1.8.6; php 7.2.6

at best you could verify this on your end

Ocramius commented 5 years ago

Thanks @staabm!

alcohol commented 5 years ago

What if the user specifies --no-autoloader? :thinking:

Ocramius commented 5 years ago

Probably would fall back to FallbackVersions, which works once installed.json and composer.lock are there