在Symfony2标准版中实现Sylius

在Symfony2标准版中实现Sylius,symfony,sylius,Symfony,Sylius,海 我正在尝试将Sylius电子商务捆绑包实现为新的Symfony 2.2.2标准版 在从命令行运行sylius:install命令时,我不断遇到以下错误: The class 'Sylius\Bundle\CartBundle\Model\CartItemInterface' was not found in the chain configured namespaces Sylius\Bundle\CoreBundle\Entity, Sylius\Bundle\SettingsBundle

我正在尝试将Sylius电子商务捆绑包实现为新的Symfony 2.2.2标准版

在从命令行运行sylius:install命令时,我不断遇到以下错误:

The class 'Sylius\Bundle\CartBundle\Model\CartItemInterface' was not found in
the chain configured namespaces Sylius\Bundle\CoreBundle\Entity,
Sylius\Bundle\SettingsBundle\Entity, Sylius\Bundle\CartBundle\Entity,
Sylius\Bundle\AssortmentBundle\Entity, Sylius\Bundle\TaxationBundle\Entity,
Sylius\Bundle\ShippingBundle\Entity, Sylius\Bundle\PaymentsBundle\Entity,
Sylius\Bundle\PromotionsBundle\Entity, Sylius\Bundle\AddressingBundle\Entity,
Sylius\Bundle\SalesBundle\Entity, Sylius\Bundle\InventoryBundle\Entity,
Sylius\Bundle\TaxonomiesBundle\Entity, FOS\UserBundle\Entity
捆绑包是通过
Composer
导入的,通过
AppKernel.php
激活的,我已经从一个普通的
Sylius
安装迁移了依赖项和配置,实际上不知道这个错误来自何处。我刚刚注意到,它试图在实体名称空间中找到一个模型,这是不对的


有人有想法吗?

我们也有同样的问题,我们正在使用symfony 2.1。我通过在app Kernel.php文件中重新排列bundle注册来修复它

在这个文件中,我将syliusCart包寄存器放在所有其他sylius包和条令寄存器之前

我真的不知道这是什么原因,也不知道为什么这对我有用。。。但我希望这对你有用


干杯

日本人,这真的解决了问题。我刚刚意识到,在Sylius应用程序中,他们还将Sylius捆绑包放在条令捆绑包之前。谢谢你帮助我!我会向开发团队汇报。