FriendsOfSymfony / FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
MIT License
2.79k stars 707 forks source link

Problem while trying to install the bundle, and its solution #2355

Open krachleur opened 2 years ago

krachleur commented 2 years ago

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:*