我在Symfony3上安装sonata项目/用户捆绑包开发主机时遇到问题,我收到此错误sonata项目/用户捆绑包dev-master与sonata项目或条令orm管理捆绑包[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"
},
感谢
FOS User 2.x对于SF3不稳定。在FOS用户不会发布2.x稳定版本之前,Sonata用户捆绑包将不兼容。
请查看github 上的问题
sonata用户捆绑包没有任何与Symfony 3兼容的版本,这是您的问题。
冲突可能是因为条令orm管理捆绑包需要一个symfony 3.x版本的sonata管理,而用户捆绑包需要symfony 2.8版本。