简体   繁体   中英

Unable to install FOSRestBundle with Symfony 5

I was trying to install FOSRestBundle on Symfony 5 using composer but got the following error message:

friendsofsymfony/rest-bundle 2.7.1 requires symfony/config ^3.4|^4.3

Is it possible to manually install FOSRestBundle with Symfony 5; as it seems it will not be updated and instead API Platform will be maintained in future?

I don't want to use API Platform as it has lot of stuff not required by my project.

FOSRestBundle development has not been abandoned.

But Symfony 5 support is not expected until version 3 .

You can check the progress here . As you can see there is no due date yet.

So you either continue using FOSRestBundle with Symfony 4.4 (which is perfectly acceptable, 4.4 it's a long term release and it's not going anywhere), or you need Symfony 5; you either look for alternatives to FOSRestBundle or run a pre-release version (with the risks that it entail).

Thanks GrenierJ, an issue is already open and as per xabbuh , the master now serves for the development of FOSRestBundle 3.0. Its version constraints already allow Symfony 5 components. I tried to install the dev-master using composer require --dev friendsofsymfony/rest-bundle:dev-master and it successfully installed. Its under development so all of its features may not be compatible with Symfony 5.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM