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

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

  • dongzhanlian6289 2017-06-15 18:00
    关注

    It looks like the latest version of friendsofsymfony/user-bundle is not yet supported with/by sonata-project/user-bundle

    You're using:

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

    You need to be using:

    "friendsofsymfony/user-bundle" : "^1.3",
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 VFP如何使用阿里TTS实现文字转语音?
  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题