sonata-project/user-bundle dev-master 与 sonata-project/doctrine-orm-admin-bundle 冲突
Posted
技术标签:
【中文标题】sonata-project/user-bundle dev-master 与 sonata-project/doctrine-orm-admin-bundle 冲突【英文标题】:sonata-project/user-bundle dev-master conflicts with sonata-project/doctrine-orm-admin-bundle 【发布时间】:2017-05-18 11:36:34 【问题描述】:我在尝试在 Symfony3 上安装 sonata-project/user-bundle dev-master 时遇到问题,我知道了错误 sonata-project/user-bundle dev-master 与 sonata-project/doctrine-orm-admin-bundle[dev-master] 冲突
是否有人过期了同样的问题?如何解决?
这是我的 composer.json 要求
"require":
"php": ">=5.6.10",
"symfony/symfony": "3.2.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^3.0",
"symfony/polyfill-apcu": "^1.0",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"doctrine/doctrine-fixtures-bundle": "2.3.0",
"sebastian/phpcpd": "*",
"behat/symfony2-extension": "dev-master",
"behat/mink-browserkit-driver": "dev-master",
"behat/mink-goutte-driver": "dev-master",
"codeception/codeception": "2.2.7",
"friendsofsymfony/user-bundle": "dev-master",
"sonata-project/admin-bundle": "^3.10",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/datagrid-bundle": "dev-master",
"sonata-project/user-bundle": "dev-master"
,
谢谢
【问题讨论】:
【参考方案1】:sonata-user-bundle 没有任何与 Symfony 3 兼容的版本,这是你的问题。
冲突可能来自以下事实 教义-orm-admin-bundle 需要 symfony 3.x 版本的奏鸣曲管理员,而 user-bundle 需要 symfony 2.8 版本。
【讨论】:
【参考方案2】:FOS User 2.x 对于 SF3 不稳定。在 FOS User 不会发布 2.x 稳定版本之前,Sonata User Bundle 将不兼容。
请检查issue on github
【讨论】:
以上是关于sonata-project/user-bundle dev-master 与 sonata-project/doctrine-orm-admin-bundle 冲突的主要内容,如果未能解决你的问题,请参考以下文章