1

我无法正确解析 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"
4

2 回答 2

1

如今,Sylius 依赖项完全是一团糟(它是一个 pre-alpha 版本)。目前没有好的解决方案,但如果你使用

"minimum-stability": "dev",
"prefer-stable": true,

在你的composer.json你可能会得到你所期望的。

这安装了Doctrine 1.3.0@dev,它与Symfony 2.4不兼容。所以 Doctrine 代码生成器 ( app/console doctrine:...) 会崩溃,但Sylius会工作。

正如我所说,目前还没有最佳解决方案,也许是Symfony 2.5

于 2014-05-15T14:36:57.620 回答
0

将所有 Sylius 捆绑包设置为 0.9 版。你没有冲突

于 2014-05-16T06:38:47.127 回答