0
我尝试使用以下命令来安装sylius项目终止后安装-CMD事件SF2 Sylius:</p> <pre><code>composer create-project -s dev sylius/sylius-standard </code></pre> <p>但总是有相同的错误:由于异常
[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"
看来工作,但它是一个丑陋的解决方案,我有一种感觉......
现在:应用程序/控制台sylius:安装导致:
[InvalidArgumentException]
There are no commands defined in the "doctrine:phpcr:repository" namespace.
有其他人遇到的同样的问题 ?