0

次のコマンドで sylius プロジェクトをインストールしようとしました。

composer create-project -s dev sylius/sylius-standard

しかし、常に同じエラーが発生します:

  [InvalidArgumentException]                                       
  The class sylius.model.promotion_subject.class does not exists.

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
handling the post-update-cmd event terminated with an exception

  [RuntimeException]                                                         
  An error occurred when executing the "'cache:clear --no-warmup'" command. 

SyliusPromotionBundle では、次のことに気付きました。

       $interfaces = array(
        'Sylius\Bundle\PromotionsBundle\Model\PromotionInterface'        =>     'sylius.model.promotion.class',
        'Sylius\Bundle\PromotionsBundle\Model\CouponInterface'           => 'sylius.model.promotion_coupon.class',
        'Sylius\Bundle\PromotionsBundle\Model\RuleInterface'             => 'sylius.model.promotion_rule.class',
        'Sylius\Bundle\PromotionsBundle\Model\ActionInterface'           => 'sylius.model.promotion_action.class',
        'Sylius\Bundle\PromotionsBundle\Model\PromotionSubjectInterface' => 'sylius.model.promotion_subject.class',
    );

そこで、app/parameters.yml に直接追加しようとしました。

sylius.model.promotion_subject.class: "Sylius\Bundle\PromotionsBundle\Model\PromotionSubjectInterface"

うまくいくようですが、それは醜い解決策だと感じています...

現在: app/console sylius:install は以下につながります:

  [InvalidArgumentException]                                                   
  There are no commands defined in the "doctrine:phpcr:repository" namespace.

他の誰かが同じ問題に遭遇しましたか?

4

1 に答える 1

0

ドキュメントに記載されていない操作をしなければならないのは奇妙だと思いました。今日、もう一度 sylius プロジェクトを最初からインストールしようとしましたが、すべて問題ないようです。sylius の Web サイトで言及されているように、「Sylius はプレ アルファ開発段階にあります」。チームはいくつかの変更を加えたと思います。ティモン、今日のインストールが成功することを願っています...よろしくお願いします。

于 2014-03-17T08:31:02.040 に答える