当我尝试将symfony从2.8升级到3时出错:
这是我的composer.json:
"minimum-stability": "dev",
"require": {
"php": ">=5.4.26",
"symfony/symfony": "3.0.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.2",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"knplabs/knp-paginator-bundle": "dev-master",
"friendsofsymfony/user-bundle": "^1.3",
"adesigns/calendar-bundle" : "dev-master",
"friendsofsymfony/jsrouting-bundle" : "1.5.4",
"liip/imagine-bundle" : "dev-master",
"jordillonch/crud-generator" : "dev-master",
"stof/doctrine-extensions-bundle": "~1.1@dev",
"kms/froala-editor-bundle": "dev-master",
"webfactory/exceptions-bundle" : "^4.3",
"lexik/translation-bundle": "^4.0",
"jms/i18n-routing-bundle": "dev-master",
"hwi/oauth-bundle": "dev-master",
"liuggio/excelbundle": "^2.0",
"a2lix/translation-form-bundle": "^2.1",
"besimple/i18n-routing-bundle": "dev-master",
"knplabs/doctrine-behaviors": "~1.1",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"unifik/database-config-bundle": "dev-master",
"beelab/recaptcha2-bundle": "~1.2",
"dario_swain/ds-recaptcha-bundle": "dev-master",
"avocode/form-extensions-bundle": "dev-master",
"gos/web-socket-bundle": "~1.0",
"knplabs/knp-snappy-bundle": "^1.4",
"umpirsky/symfony-upgrade-fixer": "^0.1.5"
}
答案 0 :(得分:0)
beelab/recaptcha2-bundle v0.1.3 requires symfony/symfony ~2.3 -> satisfiable by symfony/symfony[2.8.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev].
这意味着,recaptcha2-bundle不允许安装Symfony 3。如果您想要升级到Symfony 3,那么您必须检查,如果该捆绑包在较新版本中可用,或者您必须删除该捆绑包。