Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonata User Bundle + Symfony 3.x

I use Symfony 3.0.6, Sontata Admin Bundle 3.0.0 and the Doctrine ORM Admin Bundle on dev-master. The user bundle doesnt work even with dev-master. Is there a solution for Symfony 3.x yet?

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

Problem 1
  - Conclusion: remove symfony/symfony v3.0.6
  - Conclusion: don't install symfony/symfony v3.0.6
  - Conclusion: don't install symfony/symfony v3.0.5
  - Conclusion: don't install symfony/symfony v3.0.4
  - Conclusion: don't install symfony/symfony v3.0.3
  - Installation request for sonata-project/user-bundle dev-master ->
satisfiable by sonata-project/user-bundle[dev-master].
  - Conclusion: don't install symfony/symfony v3.0.2
  - Conclusion: don't install symfony/symfony v3.0.1
  - sonata-project/user-bundle dev-master requires symfony/form ^2.3 -> 
satisfiable by symfony/form[.....
like image 399
user1878703 Avatar asked May 19 '16 06:05

user1878703


1 Answers

The SonataUserBundle just released a 3.0.0 version 3 days ago, but does not seem to be compatible with SF3 yet, given the composer.json file:

{
    "name": "sonata-project/user-bundle",
    "require": {
        "php": "^5.3 || ^7.0",
        "symfony/http-foundation": "^2.3",
        "symfony/form": "^2.3",
        "symfony/security": "^2.3",
        "symfony/console": "^2.3",
    },
    [...]
}

I am afraid we will have to wait a little bit longer.

Some issues were posted about it on the official repository: https://github.com/sonata-project/SonataUserBundle/issues/724

The author's answer:

SF 3.0 is not supported because FOSUser 1.x does not support it.

FOSUser 2.x is not stable and is not supported by our bundle right now.


For the complete story, there were plans to release a SF3 compatible version of the FOSUserBundle on december 2015, but no news about that one has came since...

https://github.com/FriendsOfSymfony/FOSUserBundle/pull/1990

Let's wait & see!

like image 174
Flo Schild Avatar answered Nov 20 '22 06:11

Flo Schild