MyO
MyO

Reputation: 443

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.

Upvotes: 3

Views: 6288

Answers (2)

yivi
yivi

Reputation: 47647

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).

Upvotes: 4

MyO
MyO

Reputation: 443

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.

Upvotes: 1

Related Questions