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 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分