注释捆绑包似乎与2.3.7 symfony版本不兼容。
你能帮我吗?
config.yml:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"symfony/framework-bundle": "2.3.*",
"friendsofsymfony/user-bundle": "1.3.*@dev",
"friendsofsymfony/rest-bundle": "0.12.0",
"friendsofsymfony/rest": "0.8.0",
"jms/serializer-bundle": "0.12.0",
"knplabs/knp-menu-bundle": "v1.1.2",
"knplabs/knp-menu": "v1.1.2",
"liip/imagine-bundle": "v0.17.0",
"imagine/imagine": "v0.5.0",
"rodchyn/cron-manager-bundle": "dev-master",
"bcc/extra-tools-bundle": "v1.0",
"symfony/intl": "2.3.*@dev",
"friendsofsymfony/comment-bundle": "2.0.5"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.3-dev"
}
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "stable",
}
这里是错误:
- Installation request for symfony/framework-standard-edition 2.3.x-dev -> satisfiable by symfony/framework-standard-edition[2.3.x-dev].
- Conclusion: remove symfony/symfony v2.3.7
- Conclusion: don't install symfony/symfony v2.3.7
- Conclusion: don't install symfony/symfony v2.3.6
- Conclusion: don't install symfony/symfony v2.3.5
- Conclusion: don't install symfony/symfony v2.3.4
- Conclusion: don't install symfony/symfony v2.3.3
- Installation request for friendsofsymfony/comment-bundle 2.0.5 -> satisfiable by friendsofsymfony/comment-bundle[v2.0.5].
- Conclusion: don't install symfony/symfony v2.3.2
- friendsofsymfony/comment-bundle v2.0.5 requires symfony/symfony >=2.1,<2.3-dev -> satisfiable by symfony/symfony[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.0].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.1].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.10].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.11].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.12].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.13].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.2].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.3].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.4].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.5].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.6].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.7].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.8].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.9].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.0].
您需要的是symfony/symfony 2.3.7版本。Symbony/comment bundle 2.0.5版本的库友声明,它与Symbony 2.3不兼容,仅与任何版本2.1.x或2.2.x兼容。
作曲家告诉你,它无法解决这个冲突。
作为一般建议,我建议不要在composer.json
文件中声明软件的明确版本,因为在添加新组件时它是不可编辑的。某些冲突可能也可以通过降级或升级其他组件来解决——只有在允许这些版本更改的情况下才会发生这种情况。
例如,波浪号运算符对此很有用。通过要求symfony的"~2.3",您表示您至少想要2.3.0版本,但也对2.999.999之前的任何更新感到满意(即低于3.0)。这与使用语义版本控制的组件配合得很好,这意味着在修复错误时补丁版本会增加,在以向后兼容的方式添加新功能时次要版本会增加,并且当不兼容的改变发生时,major版本增加。通常你会对任何兼容的更新感到满意,所以这就是为什么symfony的"~2.3"会和2.3.*一样好,甚至更好,因为你还允许2.4.0及更高版本,这应该与2.3.x兼容。
你能用评论包做什么?如果你看看他们的Github repo,你会发现在master分支中,composer.json不再施加"no2.3symfony"限制。
此版本将可用于您的软件,要求:
"friendsofsymfony/comment-bundle": "~2.0@dev"
或者,您也可以使用星号:
"friendsofsymfony/comment-bundle": "2.0.*@dev"
"@dev"只允许此组件使用2.0的开发版本,并且由于主分支被声明为别名"2.0.x-dev",Composer将主分支识别为2.0的当前开发版本。所以"2.0.*@dev"是master中最新的版本,我希望这个版本与Symfony 2.3兼容。
使用:
"friendsofsymfony/评论捆绑包":"~2.0@dev"
我有这个错误:
Problem 1
- friendsofsymfony/comment-bundle v2.0.4 requires jms/serializer 1.0.*@dev -> no matching package found.
- don't install friendsofsymfony/comment-bundle 2.0.x-dev|install friendsofsymfony/comment-bundle dev-master
- Conclusion: don't install friendsofsymfony/comment-bundle dev-master
- Conclusion: remove symfony/symfony v2.3.7
- Conclusion: don't install symfony/symfony v2.3.7
- Conclusion: don't install symfony/symfony v2.3.6
- Conclusion: don't install symfony/symfony v2.3.5
- Conclusion: don't install symfony/symfony v2.3.4
- Conclusion: don't install symfony/symfony v2.3.3
- Installation request for symfony/framework-standard-edition 2.3.x-dev -> satisfiable by symfony/framework-standard-edition[2.3.x-dev].
- Conclusion: don't install symfony/symfony v2.3.2
- Installation request for friendsofsymfony/rest-bundle 0.12.0 -> satisfiable by friendsofsymfony/rest-bundle[0.12.0].
- symfony/framework-standard-edition 2.3.x-dev requires friendsofsymfony/comment-bundle ~2.0@dev -> satisfiable by friendsofsymfony/comment-bundle[2.0.x-dev, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4, v2.0.5].
- friendsofsymfony/comment-bundle v2.0.0 requires symfony/symfony 2.1.* -> satisfiable by symfony/symfony[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9].
- friendsofsymfony/comment-bundle v2.0.1 requires symfony/symfony 2.1.* -> satisfiable by symfony/symfony[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9].
- friendsofsymfony/comment-bundle v2.0.2 requires symfony/symfony 2.1.*@stable -> satisfiable by symfony/symfony[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9].
- friendsofsymfony/comment-bundle v2.0.3 requires symfony/symfony 2.1.*@stable -> satisfiable by symfony/symfony[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9].
- friendsofsymfony/comment-bundle v2.0.5 requires symfony/symfony >=2.1,<2.3-dev -> satisfiable by symfony/symfony[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.0].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.1].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.10].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.11].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.12].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.13].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.2].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.3].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.4].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.5].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.6].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.7].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.8].
- Can only install one of: symfony/symfony[v2.3.0, v2.1.9].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.0].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.1].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.10].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.11].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.2].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.3].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.4].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.5].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.6].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.7].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.8].
- Can only install one of: symfony/symfony[v2.3.0, v2.2.9].
- symfony/framework-standard-edition 2.3.x-dev requires symfony/symfony 2.3.* -> satisfiable by symfony/symfony[v2.3.7, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5, v2.3.6].
- Conclusion: don't install symfony/symfony v2.3.1