我无法正确解析 Sylius 设置包。我的应用程序是 Symfony 标准应用程序。根据Symfony 2.4.4
需求的默认json是doctrine/doctrine-bundle~1.2
我当前的 json: https ://gist.github.com/Rvanlaak/f627a73a8d431600f8ba
解决 sylius/settings-bundle~0.9
给我以下错误:
- Installation request for doctrine/doctrine-bundle == 1.2.0.0 -> satisfiable by doctrine/doctrine-bundle[v1.2.0].
- Conclusion: don't install doctrine/doctrine-bundle 1.3.x-dev
- sylius/settings-bundle v0.9.0 requires sylius/resource-bundle 0.9.*@dev -> satisfiable by sylius/resource-bundle[v0.9.0].
- sylius/settings-bundle 0.10.x-dev requires sylius/resource-bundle 0.10.*@dev -> satisfiable by sylius/resource-bundle[0.10.x-dev].
- sylius/resource-bundle v0.9.0 requires doctrine/doctrine-bundle ~1.3@dev -> satisfiable by doctrine/doctrine-bundle[1.3.x-dev, v1.3.0-beta1].
- sylius/resource-bundle 0.10.x-dev requires doctrine/doctrine-bundle ~1.3@dev -> satisfiable by doctrine/doctrine-bundle[1.3.x-dev, v1.3.0-beta1].
- Conclusion: don't install doctrine/doctrine-bundle v1.3.0-beta1
- Installation request for sylius/settings-bundle ~0.9 -> satisfiable by sylius/settings-bundle[0.10.x-dev, v0.9.0].
将我的学说/学说捆绑更改为 ~1.3@dev 或 1.2.0 会出现错误:
- The requested package doctrine/doctrine-bundle == 1.2.0.0 could not be found.
并且 therafter require sylius/settings-bundle dev-master 给出了错误:
- Can only install one of: doctrine/doctrine-bundle[1.3.x-dev, v1.2.0].
- Can only install one of: doctrine/doctrine-bundle[v1.2.0, 1.3.x-dev].
- sylius/resource-bundle 0.10.x-dev requires doctrine/doctrine-bundle ~1.3@dev -> satisfiable by doctrine/doctrine-bundle[1.3.x-dev].
- sylius/settings-bundle dev-master requires sylius/resource-bundle 0.10.*@dev -> satisfiable by sylius/resource-bundle[0.10.x-dev].
- Installation request for sylius/settings-bundle dev-master -> satisfiable by sylius/settings-bundle[dev-master].
- Installation request for doctrine/doctrine-bundle v1.2.0 -> satisfiable by doctrine/doctrine-bundle[v1.2.0].
所以在我看来,依赖关系似乎相互矛盾。Symfony 标准版是否无法解析 sylius/settings-bundle ?
编辑
删除以下捆绑包后,composer 实际上可以正确解析
"lexik/form-filter-bundle" : "~2.0",
"knplabs/knp-paginator-bundle" : "~2.3",
"liip/imagine-bundle" : "<1.0.x-dev",
"raulfraile/ladybug-bundle" : "~1.0",
"simplethings/entity-audit-bundle" : "~0.5",
"knplabs/knp-snappy-bundle" : "~1.1",
"fpn/tag-bundle": "~0.9"