If we try to install vich/uploader-bundle on clean symfony 5.4 (which uses newest verion of event-dispatcher-contracts) we have the error
$ composer require vich/uploader-bundle
Using version ^1.18 for vich/uploader-bundle
./composer.json has been updated
Running composer update vich/uploader-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires vich/uploader-bundle ^1.18 -> satisfiable by vich/uploader-bundle[1.18.0].
- vich/uploader-bundle 1.18.0 requires symfony/event-dispatcher-contracts ^1.1 || ^2.0 -> found symfony/event-dispatcher-contracts[v1.1.1, ..., v1.1.11, v2.0.0, ..., v2.5.0] but the package is fixed to v3.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require vich/uploader-bundle:*" to figure out if any version is installable, or "composer require vich/uploader-bundle:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Feature Request
Add support event-dispatcher-contracts 3.0
Summary
If we try to install
vich/uploader-bundle
on clean symfony 5.4 (which uses newest verion of event-dispatcher-contracts) we have the error