我已按照文档安装了SyliusCartBundle,当我运行" php app / console doctrine:schema:update --force"我收到以下错误:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized option "driver" under "sylius_money"
我的config.yml看起来像http://sylius.readthedocs.org/en/latest/bundles/SyliusCartBundle/installation.html
#\app\config\config.yml
sylius_cart:
resolver: app.cart_item_resolver # The id of our newly created service.
classes: ~ # This key can be empty but it must be present in the configuration.
sylius_order:
driver: doctrine/orm
sylius_money:
driver: doctrine/orm
答案 0 :(得分:0)
我submitted a PR更新了Sylius CartBundle的文档。
配置应该是最简单的:
sylius_money: ~
这相当于默认选项,即:
sylius_money:
currency: EUR
locale: en
但是在Symfony中,我建议使用此设置:
sylius_money:
locale: %locale%
%locale%
的值取自app/config/parameters.yml
。