sonata-project / SonataUserBundle

Symfony SonataUserBundle
https://docs.sonata-project.org/projects/SonataUserBundle
MIT License
342 stars 487 forks source link

The doctrine/collections requirement prevents installing on Symfony 6.2 #1598

Closed gremo closed 1 year ago

gremo commented 1 year ago

The dependecy is locked at 1.x for doctrine/collections. This prevents installing this bundle with a fresh Symfony 6.2 install, unless you downgrade that library.

VincentLanglet commented 1 year ago

Feel free to add support for doctrine/collections 2

gremo commented 1 year ago

Sure I would, can you point me to the right direction? I don't think it's a great effort https://github.com/doctrine/collections/blob/2.1.x/UPGRADE.md

VincentLanglet commented 1 year ago

Changing this https://github.com/sonata-project/SonataUserBundle/blob/5.x/composer.json#L24 to || ^2.0 might be enough.

You can check if locally the v2 is installed. If not, you can use composer why-not doctrine/collections 2 to know why. Maybe we'll have to add support for collections v2 to some others sonata bundle first.

gremo commented 1 year ago

Thank you!

Right now the only "problem" seems to be user-bundle itself (the root requirement is coming from the dowgrade I made in order to install user-bundle):

# composer why-not doctrine/collections 2
symfony/skeleton           dev-master requires doctrine/collections (^1.8) 
sonata-project/user-bundle 5.5.0      requires doctrine/collections (^1.6) 

Project is configured right now with SonataAdminBundle, SonataMediaBundle and SonataUserBundle.

VincentLanglet commented 1 year ago

Then the PR will be easy