0

尝试将项目从 Symfony 2.7 更新到 3.x,当我运行 composer update时,我得到了我正在使用的不同包之间的依赖冲突,例如:

friendsofsymfony/jsrouting-bundle 1.5.3 requires symfony/framework-bundle ~2.0
lunetics/locale-bundle 2.4.5 requires symfony/framework-bundle ^2.8|^3.0

symfony/framework-bundle 3.3.x-dev conflicts with symfony/symfony[v3.0.0]

是否有解决冲突而不禁用捆绑包的解决方法?

我的 composer.json 文件: https ://pastebin.com/tAsij64M

4

1 回答 1

0

你必须更新:

  • jsrouting-bundle 到 ^1.6 以便与 framework-bundle 3.* 兼容
  • symfony 到 3.3 或降级 framework-bundle 到 3.0.* 因为 symfony 和 framework-bundle 必须有相同的版本
于 2017-10-25T10:07:10.977 回答