douzhai7873 2014-02-11 20:15
浏览 47
已采纳

需要帮助清理/组织作曲家中的奏鸣曲项目依赖项

I'm using the great sonata admin bundle on my projects. But for a few months, I got problems with the dependencies when updating using composer. I needed to change version declaration, but it keeps giving me errors.

I took a look on the sonata doc but it gives no help on versions.

So I'm asking here if someone could give me the correct configuration in the composer file to get all of sonata bundle working together.

Here is my composer.json

    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",
    "doctrine/orm": ">=2.2.3,<2.4-dev",
    "doctrine/doctrine-bundle": "1.2.*",
    "twig/extensions": "1.0.*",
    "symfony/assetic-bundle": "2.3.*",
    "symfony/swiftmailer-bundle": "2.3.*",
    "symfony/monolog-bundle": "2.3.*",
    "sensio/distribution-bundle": "2.3.*",
    "sensio/framework-extra-bundle": "2.3.*",
    "sensio/generator-bundle": "2.3.*",
    "incenteev/composer-parameter-handler": "~2.0",
    "friendsofsymfony/user-bundle": "1.3.*",
    "sonata-project/admin-bundle": "2.2.*@dev",
    "sonata-project/block-bundle": "2.1.*@dev",
    "sonata-project/cache-bundle": "dev-master",
    "sonata-project/jquery-bundle": "1.8.*@dev",
    "sonata-project/easy-extends-bundle" : "dev-master",
    "sonata-project/intl-bundle" : "dev-master",
    "sonata-project/doctrine-orm-admin-bundle": "dev-master",
    "sonata-project/user-bundle": "dev-master",
    "sonata-project/media-bundle" : "dev-master",
    "genemu/form-bundle": "2.2.*",
    "winzou/console-bundle": "1.*",
    "knplabs/knp-menu-bundle": "~2.0@dev",
    "knplabs/knp-menu": "~2.0@dev"

My Symfony version is 2.3.8

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dongqiang2069 2014-02-11 20:26
    关注

    Here is working composer configuration for sonata bundles and Symfony 2.3.9:

    {
        "sonata-project/admin-bundle": "dev-master",
        "sonata-project/core-bundle": "~2.2@dev",
        "sonata-project/doctrine-orm-admin-bundle": "dev-master",
        "sonata-project/intl-bundle": "dev-master",
        "sonata-project/cache-bundle": "dev-master",
        "sonata-project/cache": "~1.0@dev",
        "sonata-project/block-bundle": "@dev",
        "sonata-project/jquery-bundle": "@dev",
        "sonata-project/doctrine-extensions": "1.0.0",
        "sonata-project/user-bundle": "dev-master",
        "sonata-project/easy-extends-bundle": "dev-master",
        "sonata-project/exporter": "1.3.*"
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求给定范围的全体素数p的(p-2)的连乘积
  • ¥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的方法去调试网页