安装sonata电子商务包

时间:2016-08-18 13:17:31

标签: php symfony symfony-sonata sonata

我需要在我的项目中使用奏鸣曲电子商务功能,但到目前为止我还没有取得任何成功。似乎我的当前设置没有兼容的版本。 这是我的作曲家文件

"require": {
  "php": ">=5.3",
  "ext-soap": "*",
  "ext-gd": "*",
    "symfony/symfony": "2.8.*",
    "doctrine/orm": "^2.4.8",
    "doctrine/doctrine-bundle": "~1.4",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~5.0",
    "sensio/framework-extra-bundle": "^3.0.2",
    "incenteev/composer-parameter-handler": "~2.0",
    "knplabs/knp-last-tweets-bundle": "*",

  "friendsofsymfony/rest-bundle":"^1.8",
    "twig/extensions":"1.2",
  "friendsofsymfony/oauth-server-bundle": "dev-master",
    "hwi/oauth-bundle": "^0.4.2",
    "sonata-project/admin-bundle": "2.x.dev",
    "sonata-project/doctrine-orm-admin-bundle": "2.x.dev",
    "sonata-project/media-bundle": "~2.3",
    "sonata-project/classification-bundle": "2.x-dev",
    "sonata-project/user-bundle": "2.x.dev",
    "sonata-project/block-bundle": "2.2.*"


},

当我运行composer require sonata-project/ecommerce-bundle作曲家时,找不到适用于我当前设置的版本。 我得到的错误消息是

Problem 1
- Installation request for sonata-project/ecommerce ^2.0 -> satisfiable by sonata-project/ecommerce[2.0.0].
- sonata-project/ecommerce 2.0.0 requires sonata-project/block-bundle ^3.0 -> satisfiable by sonata-project/block-bundle[3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.x-dev] but these conflict with your requirements or minimum-stability.

请帮忙。我有超过3天的时间试图让这个工作。

1 个答案:

答案 0 :(得分:2)

合并此PR时,有些问题将得到修复:https://github.com/sonata-project/sandbox/pull/583

所以只需等待几天,或修补一些代码;)