Symfony3捆绑包与FOSUserBundle冲突

时间:2017-06-15 17:55:10

标签: php symfony

我在与作曲家冲突中苦苦挣扎。

我的消息如下所示,我猜^1.3表示"使用超过版本1.3"?。

我说错了吗?

我正在使用"friendsofsymfony/user-bundle" : "2.0.1"

它满足了需求。

我可以选择1.3,X作为消息说,但仍然会发生一些冲突,

所以我在猫捉老鼠游戏中堆叠。

解决这个问题的最佳方法是什么?

或者,如果有人使用SonataUserbundle,FOSUserBundle,HWIOAuthBundle设置Symfony3.3,请告诉我捆绑的组合吗?

我只想用OAuth进行用户管理。

  Problem 1
    - Installation request for sonata-project/user-bundle 3.2.4 -> satisfiable by sonata-project/user-bundle[3.2.4].
    - sonata-project/user-bundle 3.2.4 requires friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6, v1.3.7] but these conflict with your requirements or minimum-stability.

在composer.json

   "require": {
        "php": ">=5.5.9",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/orm": "^2.5",
        "incenteev/composer-parameter-handler": "^2.0",
        "sensio/distribution-bundle": "^5.0.19",
        "sensio/framework-extra-bundle": "^3.0.2",
        "symfony/monolog-bundle": "^3.1.0",
        "symfony/polyfill-apcu": "^1.0",
        "symfony/swiftmailer-bundle": "^2.3.10",
        "symfony/symfony": "3.3.*",
        "twig/twig": "^1.0||^2.0",

        "sonata-project/admin-bundle" : "3.19.0",
        "sonata-project/cache-bundle" : "dev-master",
        "sonata-project/block-bundle" : "3.3.2",
        "sonata-project/doctrine-orm-admin-bundle" : "3.1.1",
        "sonata-project/core-bundle" : "3.4.0",
        "sonata-project/doctrine-extensions" : "1.0.2",
        "sonata-project/user-bundle" : "3.2.4",
        "friendsofsymfony/user-bundle" : "2.0.1",
        "sonata-project/intl-bundle" : "dev-master",
        "twig/extensions" : "1.0.*",
        "symfony/assetic-bundle" : "dev-master",
        "jms/security-extra-bundle" : "dev-master",
        "jms/di-extra-bundle" : "1.8.1",

        "hwi/oauth-bundle" : "dev-master",
        "knplabs/knp-menu-bundle" : "2.1.2",
        "friendsofsymfony/jsrouting-bundle" : "~1.1",
        "adesigns/calendar-bundle" : "dev-master",
        "symfony/expression-language" : "2.7.*@dev",
        "stof/doctrine-extensions-bundle" : "dev-master",
        "gedmo/doctrine-extensions" : "2.3.12",
        "php-http/guzzle6-adapter" : "1.1.1",
        "league/uri" : "4.2.2",

        "jms/serializer-bundle" : "dev-master",
        "sonata-project/classification-bundle" : "dev-master",
        "sonata-project/datagrid-bundle" : "2.2.1"

1 个答案:

答案 0 :(得分:2)

friendsofsymfony/user-bundle

似乎尚未支持sonata-project/user-bundle的最新版本

您正在使用:

"friendsofsymfony/user-bundle" : "2.0.1",

您需要使用:

"friendsofsymfony/user-bundle" : "^1.3",