我在尝试更新 Symfony 项目时遇到了问题:
php composer.phar update
返回:
Problem 1
- Conclusion: don't install symfony-cmf/symfony-cmf 1.0.0-alpha1
- remove symfony-cmf/symfony-cmf 1.0.x-dev|keep symfony-cmf/symfony-cmf dev-master
- symfony-cmf/symfony-cmf 1.0.0-alpha2 requires doctrine/phpcr-bundle 1.0.0-alpha4 -> satisfiable by doctrine/phpcr-bundle[1.0.0-alpha4].
- symfony-cmf/symfony-cmf 1.0.x-dev requires doctrine/phpcr-bundle 1.0.0-alpha4 -> satisfiable by doctrine/phpcr-bundle[1.0.0-alpha4].
- symfony-cmf/symfony-cmf dev-master requires doctrine/phpcr-bundle 1.0.0-alpha4 -> satisfiable by doctrine/phpcr-bundle[1.0.0-alpha4].
- Conclusion: don't install doctrine/phpcr-bundle 1.0.0-alpha4|install symfony-cmf/symfony-cmf 1.0.0-alpha1
我的 composer.json 如下:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"doctrine/orm": "2.3.*",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"jms/di-extra-bundle": "1.3.*",
"friendsofsymfony/user-bundle": "*",
"sonata-project/user-bundle": "dev-master",
"sonata-project/admin-bundle": "2.2.*@dev",
"sonata-project/easy-extends-bundle" : "dev-master",
"sonata-project/intl-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*@dev",
"sonata-project/cache-bundle": "dev-master",
"knplabs/knp-menu-bundle": "1.1.x-dev",
"sonata-project/block-bundle": "2.2.*@dev",
"jackalope/jackalope-doctrine-dbal": "dev-master",
"doctrine/phpcr-bundle": "1.0.*",
"doctrine/phpcr-odm": "1.0.*",
"symfony-cmf/routing": "1.1.*@dev",
"symfony-cmf/routing-bundle": "1.1.*@dev",
"symfony-cmf/symfony-cmf": "1.0.*",
"symfony-cmf/create-bundle": "1.0.*",
"sonata-project/doctrine-phpcr-admin-bundle": "1.0.*",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"symfony-cmf/content-bundle": "dev-master",
"slik/dompdf-bundle": "dev-master"
},
我是作曲家的新手,无法真正理解这里发生了什么。
你能帮我吗?
编辑 应用朱尔斯建议后,我收到此错误
Problem 1
- symfony-cmf/symfony-cmf dev-master requires symfony-cmf/block-bundle 1.0.0-alpha4 -> satisfiable by symfony-cmf/block-bundle[1.0.0-alpha4].
- symfony-cmf/symfony-cmf dev-master requires symfony-cmf/block-bundle 1.0.0-alpha4 -> satisfiable by symfony-cmf/block-bundle[1.0.0-alpha4].
- Conclusion: don't install symfony-cmf/block-bundle 1.0.0-alpha4
- Installation request for symfony-cmf/symfony-cmf dev-master -> satisfiable by symfony-cmf/symfony-cmf[dev-master].
编辑 2 - Symfony CMF 旧内容
vendor/symphony-cmf/block-bundle
vendor/symphony-cmf/content-bundle
vendor/symphony-cmf/core-bundle
vendor/symphony-cmf/create-bundle
vendor/symphony-cmf/menu-bundle
vendor/symphony-cmf/routing
vendor/symphony-cmf/routing-bundle
vendor/symphony-cmf/symfony-cmf
vendor/symphony-cmf/tree-browser-bundle
所有这些文件夹都包含 Symfony/Cmf/Bundle/BundleName 中预期的(我认为)结构。
例外是仅包含文档的文件夹 symfony-cmf。
这有帮助吗?