我一直在與作曲家衝突。Symfony3與FOSUserBundle的捆綁衝突
我的消息是這樣的下面,我猜^1.3
意味着「使用超過1.3版」?
我正確嗎?
我使用"friendsofsymfony/user-bundle" : "2.0.1"
它滿足需求。
我可以選擇1.3,X爲消息說,但仍存在一些衝突發生,
所以我棧貓捉老鼠的遊戲。
解決此問題的最佳方法是什麼?
或者如果有人用SonataUserbundle,FOSUserBundle,HWIOAuthBundle設置了Symfony3.3,請您讓我知道捆綁的組合?
我只是想用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.
在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.3'意味着'> = 1.3.0 <2.0.0' https://getcomposer.org/doc/articles/versions.md – fyrye
您將需要'SonataUserBundle'' dev- *'由於'SonataUserBundle'中的Symfony的版本限制''3. *'綁定到symfony'^ 2.3'。 但是SonataUserBundle開發者會要求你使用PHP 7.0或更高版本。 – fyrye
此外,您可以使用'php composer.phar why-not「sonata-project/user-bundle」dev- *「來確定爲什麼作曲家無法將a升級到所需版本。 – fyrye