FOSRestBundle icon indicating copy to clipboard operation
FOSRestBundle copied to clipboard

Problem while trying to install the bundle, and its solution

Open krachleur opened this issue 3 years ago • 0 comments

Hi, when I try to install the bundle via composer it gives me :

Your requirements could not be resolved to an installable set of packages.

 Problem 1
    - friendsofsymfony/rest-bundle[2.7.0, ..., 2.8.6] require doctrine/inflector ^1.0 -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.4 (lock file version) by a partia
l update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires friendsofsymfony/rest-bundle ^2.7 -> satisfiable by friendsofsymfony/rest-bundle[2.7.0, ..., 2.8.6].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

so just to correct this, I used the following command :

composer require friendsofsymfony/rest-bundle:*

krachleur avatar Jan 01 '22 16:01 krachleur