Sonata User Bundle + Symfony 3.x

最后都变了- 提交于 2019-12-01 01:56:18

问题


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[.....

回答1:


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!



来源:https://stackoverflow.com/questions/37315536/sonata-user-bundle-symfony-3-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!