sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

install SonataAdminBundle in Symfony 5.3 required symfony/console ^4.4 #7396

Closed a1812 closed 3 years ago

a1812 commented 3 years ago

Make new Project

$ symfony new Project1 --version=5.3 --dir=test5.3
$ cd ./test5.3

now add SonataAdminBundle

$ composer require sonata-project/admin-bundle

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

  Problem 1
    - Root composer.json requires sonata-project/admin-bundle ^3.105 -> satisfiable by sonata-project/admin-bundle[3.105.0].
    - sonata-project/admin-bundle 3.105.0 requires symfony/console ^4.4 -> found symfony/console[v4.4.0, ..., v4.4.29] but it conflicts with your root composer.json require (5.3.*).

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

You have to use either

When you run composer require sonata-project/admin-bundle, it requires by default the stable version, which is 3.105.