$ 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.
Make new Project
now add SonataAdminBundle