New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOSUser 2.0 #869

Merged
merged 10 commits into from May 8, 2017

Conversation

Projects
None yet
@jordisala1991
Member

jordisala1991 commented Apr 2, 2017

I am targeting this branch, because this is BC break.

Closes: #794 #779 #718 #702 #672 #666 #322 #379 #563 #553 #444 #410 #409 #745 #627

Some of them are really really old and maybe even solved right now. Maybe there are more issues that needs to be closed because are talking about 2.x release.

Changelog

### Added
- Add support for FOSUser 2.0

To do

  • Move all code from add_support_for_fos_user2 branch
  • Update the documentation
  • Add an upgrade note
  • Update dev-kit (sonata-project/dev-kit#246)

Subject

This will bring support for FOSUser 2.0 on master, this will require some changes on 3.x and on dev-kit. There are some code that could be deprecated on 3.x before/after this gets merged.

@jordisala1991 jordisala1991 force-pushed the jordisala1991:feature/fos_user_2 branch 3 times, most recently from 18cdb36 to ee578be Apr 2, 2017

@jordisala1991 jordisala1991 force-pushed the jordisala1991:feature/fos_user_2 branch 3 times, most recently from d5d4005 to 3141d41 Apr 2, 2017

@jordisala1991

This comment has been minimized.

Member

jordisala1991 commented Apr 2, 2017

Added a commit with the new travis config, to test with correct versions (will be removed once dev-kit creates its own commit)

@jordisala1991 jordisala1991 force-pushed the jordisala1991:feature/fos_user_2 branch from 8af905c to 915d8ed Apr 2, 2017

@jordisala1991

This comment has been minimized.

Member

jordisala1991 commented Apr 2, 2017

With this commits, this branch should work like add_support_for_fos_user2. Will check it tomorrow. If someone wants to help, that will speed up the process :D

@jontorrado

This comment has been minimized.

jontorrado commented Apr 3, 2017

If PHP7 is needed by default, we should change all array( appearances to the square brackets notation @jordisala1991 I'm going to check this as soon as you tell me "PHP stuff done" ;)

@jordisala1991 jordisala1991 force-pushed the jordisala1991:feature/fos_user_2 branch from 915d8ed to ffb22df Apr 3, 2017

@jordisala1991

This comment has been minimized.

Member

jordisala1991 commented Apr 3, 2017

PHP stuff done @jontorrado 🎉

@jordisala1991

This comment has been minimized.

Member

jordisala1991 commented Apr 3, 2017

For the array() to [] I would like to do, but I think we will do it with php-cs-fixer, but since it will make a lot of merge conflicts with 3.x we will do it as late as possible (before releasing 4.x)

@jontorrado

This comment has been minimized.

jontorrado commented Apr 4, 2017

@jordisala1991 I will try to check this today, hope to kick all my tasks off!

@jontorrado

This comment has been minimized.

jontorrado commented Apr 4, 2017

This is what I found so far:

  • The following lines must be added to SonataUserExtension.php, line 81:
        $tokenStorageReference = new Reference('security.token_storage');
        $authorizationCheckerReference = new Reference('security.authorization_checker');

I've been adapting our whole project, I was not able to find any other stuff atm.

@jordisala1991 jordisala1991 force-pushed the jordisala1991:feature/fos_user_2 branch 2 times, most recently from 8052ad9 to 24d2716 Apr 4, 2017

@jordisala1991

This comment has been minimized.

Member

jordisala1991 commented Apr 4, 2017

The following lines must be added to SonataUserExtension.php, line 81:

Fixed. Removed more lines from SonataUserExtension and moved them to config files.

Documentation (Sonata): new routing imports.
Documentation (FOS): Be careful with FOSUser 2.0 removed fields: https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Upgrade.md#200-alpha3-to-200-beta1
Documentation (FOS): form types and handlers changed.

I started with documentation, but there is a lot to do still :)
Handlers were removed on FOSUser, not sure how to handle that on our bundle.

Documentation (Sonata): Sonata User views removed, so you must move your overriding views to app/Resources/FOSUserBundle/views/. Also check namings (some camel case templates changed to snake case)

This removal will be documented if it is finally done. Not sure if we want to do it or not. (IMO I would remove that code and a lot more)

Thanks a lot for your help :) @jontorrado

@jontorrado

This comment has been minimized.

jontorrado commented Apr 5, 2017

@jordisala1991 right now, the following line is not working:

  • $container->setAlias('sonata.user.authentication.form', 'fos_user.profile.form');

I've also upgraded the whole project to Symfony 3.0.* to see what happens with this pull request. After changing the deprecated stuff, everything is working. I think the most difficult stuff here is the documentation part.

@jordisala1991 jordisala1991 force-pushed the jordisala1991:feature/fos_user_2 branch 2 times, most recently from beebdf5 to 5ecec8c Apr 5, 2017

@jordisala1991

This comment has been minimized.

Member

jordisala1991 commented Apr 5, 2017

@jontorrado Fixed that also.

@jontorrado

This comment has been minimized.

jontorrado commented May 8, 2017

Awesome work @jordisala1991

@greg0ire

This comment has been minimized.

Contributor

greg0ire commented May 8, 2017

Congrats on finishing this!

@florimond83

This comment has been minimized.

florimond83 commented May 9, 2017

Thanks a lot @jordisala1991 for the work! Just wanted to signal an error on my attempt, under php 7.0.18 and tested as well with 7.1.4, I get the same issue trying to install, don't know if it is due to some emulation for Mac OS Sierra (I've followed to upgrade PHP https://coolestguidesontheplanet.com/upgrade-php-on-osx/) :

On executing : 'composer require sonata-project/user-bundle:4.x-dev'
I got:

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

Problem 1
- Installation request for sonata-project/user-bundle 4.x-dev -> satisfiable by sonata-project/user-bundle[4.x-dev].
- sonata-project/user-bundle 4.x-dev requires php ^7.0 -> your PHP version (7.0.18) overridden by "config.platform.php" version (5.5.9) does not satisfy that requirement.

Thus I used "--ignore-platform-reqs" and it looks like ok...still wanted to share.

@OskarStark

This comment has been minimized.

Member

OskarStark commented May 10, 2017

did you set this in your composer.json @florimond83 :
config.platform.php" version (5.5.9)

if yes, this error message is correct, try to use composer install --ignore-platform-reqs

@OskarStark

This comment has been minimized.

Member

OskarStark commented May 10, 2017

I closed the referenced tickets manually

@florimond83

This comment has been minimized.

florimond83 commented May 10, 2017

Hi @OskarStark, no haven't touched composer.json, I'm using a fresh new Symfony 3.2.8 install with fos user 2.0. Thanks for pointing that out 👍
I did use --ignore-platform-reqs and it worked.

@Hanmac

This comment has been minimized.

Contributor

Hanmac commented May 10, 2017

@OskarStark #877 should probably be closed too right?

@edrush

This comment has been minimized.

edrush commented on b6884bc May 10, 2017

I miss the deleted controllers, can you tell me where the profile actions will be or are they getting removed from Sonata UserBundle forever? I'm on master since it seems the only branch that does not conflict with Symfony 3.2, right? Thank you for letting me know!

This comment has been minimized.

Member

jordisala1991 replied May 10, 2017

You can use those: https://github.com/FriendsOfSymfony/FOSUserBundle/tree/master/Controller. They are basically the same as ours

This comment has been minimized.

edrush replied May 10, 2017

Right, thank you, but the profile view is then not in the Sonata layout and there are fewer fields than I had before, or is that a configuration question?

This comment has been minimized.

DeonKuhn replied Nov 6, 2017

@jordisala1991 Hi there, what would be the recommended approach to customize these templates?

Currently I am overriding the core FOSUserBundle templates, and replacing them with templates similar to what SonataUserBundle had via the recommended app/Resources level method of overriding.

Am I on the right path with this?

@vyshkant

This comment has been minimized.

Contributor

vyshkant commented May 12, 2017

As I understand, thees changes are not released yet?

I'm trying to require SonataUserBundle and it fails:

$ composer require sonata-project/user-bundle
Using version ^3.2 for sonata-project/user-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove symfony/symfony v3.2.8
    - Conclusion: don't install symfony/symfony v3.2.8
    - sonata-project/user-bundle 3.2.0 requires symfony/form ^2.3 -> satisfiable by symfony/form[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.37, v2.3.38, v2.3.39, v2.3.4, v2.3.40, v2.3.41, v2.3.42, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
    - sonata-project/user-bundle 3.2.1 requires symfony/form ^2.3 -> satisfiable by symfony/form[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.37, v2.3.38, v2.3.39, v2.3.4, v2.3.40, v2.3.41, v2.3.42, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
    - sonata-project/user-bundle 3.2.2 requires symfony/form ^2.3 -> satisfiable by symfony/form[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.37, v2.3.38, v2.3.39, v2.3.4, v2.3.40, v2.3.41, v2.3.42, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
    - sonata-project/user-bundle 3.2.3 requires symfony/form ^2.3 -> satisfiable by symfony/form[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.37, v2.3.38, v2.3.39, v2.3.4, v2.3.40, v2.3.41, v2.3.42, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
    - don't install symfony/form v2.3.0|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.1|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.10|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.11|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.12|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.13|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.14|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.15|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.16|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.17|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.18|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.19|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.2|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.20|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.21|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.22|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.23|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.24|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.25|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.26|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.27|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.28|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.29|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.3|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.30|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.31|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.32|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.33|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.34|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.35|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.36|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.37|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.38|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.39|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.4|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.40|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.41|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.42|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.5|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.6|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.7|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.8|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.3.9|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.0|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.1|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.10|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.2|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.3|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.4|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.5|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.6|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.7|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.8|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.4.9|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.0|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.1|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.10|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.11|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.12|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.2|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.3|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.4|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.5|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.6|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.7|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.8|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.5.9|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.0|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.1|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.10|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.11|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.12|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.13|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.2|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.3|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.4|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.5|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.6|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.7|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.8|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.6.9|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.0|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.1|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.10|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.11|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.12|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.13|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.14|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.15|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.16|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.17|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.18|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.19|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.2|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.20|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.21|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.22|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.23|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.24|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.25|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.26|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.27|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.3|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.4|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.5|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.6|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.7|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.8|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.7.9|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.0|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.1|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.10|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.11|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.12|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.13|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.14|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.15|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.16|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.17|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.18|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.19|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.2|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.20|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.3|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.4|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.5|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.6|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.7|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.8|don't install symfony/symfony v3.2.8
    - don't install symfony/form v2.8.9|don't install symfony/symfony v3.2.8
    - Installation request for symfony/symfony (locked at v3.2.8, required as 3.2.*) -> satisfiable by symfony/symfony[v3.2.8].
    - Installation request for sonata-project/user-bundle ^3.2 -> satisfiable by sonata-project/user-bundle[3.2.0, 3.2.1, 3.2.2, 3.2.3].


Installation failed, reverting ./composer.json to its original content.

My environment:

Sonata packages

$ composer show sonata-project/*
sonata-project/admin-bundle              3.17.0 The missing Symfony Admin Generator
sonata-project/block-bundle              3.3.2  Symfony SonataBlockBundle
sonata-project/cache                     1.0.7  Cache library
sonata-project/core-bundle               3.3.0  Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.2.1  Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2  Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.1.4  Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle       2.2.0  Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.7.1  Lightweight Exporter library
sonata-project/media-bundle              3.5.1  Symfony SonataMediaBundle
sonata-project/notification-bundle       3.1.0  Symfony SonataNotificationBundle

Symfony packages

$ composer show symfony/*
symfony/assetic-bundle     v2.8.1 Integrates Assetic into Symfony2
symfony/monolog-bundle     v3.1.0 Symfony MonologBundle
symfony/phpunit-bridge     v3.2.8 Symfony PHPUnit Bridge
symfony/polyfill-apcu      v1.3.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu  v1.3.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring  v1.3.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56     v1.3.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70     v1.3.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util      v1.3.0 Symfony utilities for portability of PHP codes
symfony/security-acl       v3.0.0 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.5.4 Symfony SwiftmailerBundle
symfony/symfony            v3.2.8 The Symfony PHP framework

PHP version

$ php -v
PHP 7.1.5-1+deb.sury.org~xenial+1 (cli) (built: May 11 2017 14:07:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.5-1+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies
    with Xdebug v2.5.1, Copyright (c) 2002-2017, by Derick Rethans
@jontorrado

This comment has been minimized.

jontorrado commented May 12, 2017

@rechengehirn

This comment has been minimized.

rechengehirn commented May 28, 2017

Problem 1
- sonata-project/user-bundle 4.x-dev conflicts with sonata-project/intl-bundle[2.3.0].
- sonata-project/user-bundle 4.x-dev conflicts with sonata-project/intl-bundle[2.3.0].
- sonata-project/user-bundle 4.x-dev conflicts with sonata-project/intl-bundle[2.3.0].
- Installation request for sonata-project/user-bundle 4.x-dev -> satisfiable by sonata-project/user-bundle[4.x-dev].
- Installation request for sonata-project/intl-bundle ^2.3 -> satisfiable by sonata-project/intl-bundle[2.3.0].

Can someone help with that?

@jordisala1991

This comment has been minimized.

Member

jordisala1991 commented May 29, 2017

Here is the problem. https://github.com/sonata-project/SonataIntlBundle/blob/2.x/composer.json#L37.

First we need to see why is that conflict there. Can you take a look at intl-bundle code to see if there is any relation with SonataUser?

@ceesvanegmond

This comment has been minimized.

ceesvanegmond commented Jun 2, 2017

Any roadmap available for version 4.0?

@greg0ire

This comment has been minimized.

Contributor

greg0ire commented Jun 2, 2017

@core23 core23 referenced this pull request Sep 19, 2017

Closed

Remove bundle inheritance #904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment