drp935159
2017-06-15 17:55
浏览 51
已采纳

Symfony3捆绑包与FOSUserBundle冲突

I have struggling with composer conflict.

My message is like this below, I guess ^1.3 means "use more than version 1.3"?.

Am I correct?

I am using "friendsofsymfony/user-bundle" : "2.0.1"

it satisfies the needs.

I can choose 1.3,X as message says, but there are still some conflicts happens,

So I am stack in cat-and-mouse game.

What is the best way to solve this??

Or if someone has setting Symfony3.3 with SonataUserbundle, FOSUserBundle, HWIOAuthBundle, Please could you let me know the combination of bundles?

I just want to make user management with 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.

in 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条回答 默认 最新

相关推荐 更多相似问题