Following this tutorial I tried to configure REST API on fresh new Symfony 4 install.
The first step in the tutorial is doing:
composer create-project symfony/skeleton rest_api_project
Followed by
composer require friendsofsymfony/rest-bundle
However, when I try to install friendsofsymfony/rest-bundle
, I get:
Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for friendsofsymfony/rest-bundle ^2.6 -> satisfiable by friendsofsymfony/rest-bundle[2.6.0]. - friendsofsymfony/rest-bundle 2.6.0 requires symfony/config ^3.4|^4.3 -> no matching package found.
So basically that this bundle requires symfony/config ^3.4|^4.3
while Symfony 4 uses 5.0
.
How to make it work? And how this tutorial meant for Symfony 4 could even work when the friendsofsymfony/rest-bundle
does not support config in 5.0
version?