【问题标题】:Implement Sylius into Symfony2 Standard Edition在 Symfony2 标准版中实现 Sylius
【发布时间】:2013-04-18 16:28:34
【问题描述】:

喂,

我正在尝试将 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 安装迁移了依赖项和配置,实际上不知道这个错误来自哪里。我刚刚注意到,它试图在 Entiy-Namespace 中找到一个模型,这是不对的。

谁有想法?

【问题讨论】:

    标签: symfony sylius


    【解决方案1】:

    我们遇到了同样的问题,我们正在使用 symfony 2.1。我通过重新排序应用程序 Kernel.php 文件中的捆绑注册来修复它。

    在这个文件中,我将 syliusCart 捆绑注册放在所有其他 sylius 捆绑和教义注册之前​​。

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

    干杯!

    【讨论】:

    • 日本,这确实解决了问题。我刚刚意识到,他们还在 Sylius 应用程序中将 Sylius-Bundles 放在 Doctrine-Bundles 之前。谢谢你的协助!我会向开发团队报告。
    猜你喜欢
    • 1970-01-01
    • 2013-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多