我试图只为我的应用程序安装cartBundle和orderBundle (以及它们的依赖项)。我仍然是sf2的新手,所以如果我想错了,就阻止我吧。所以我找到了最新版本的包装者:
"sylius/order-bundle": "0.14.*@dev"但是composer不会自行安装所有的依赖项(所有*@dev),因此我不得不手动将所有依赖项添加到composer.json中。
过了一段时间,我终于在app/config.yml中实现了包的配置,并在appKernel.php.之上添加了这些包
但我有个错误:
ParameterNotFoundException in ParameterBag.php line 106: The service "sylius.translatable.listener" has a dependency on a non-existent parameter "sylius.translation.mapping". Did you mean this: "sylius.translation.default.mapping"?我不知道该怎么做。我可能漏掉了什么。我找不到translationBundle:http://docs.sylius.org/en/latest/bundles/SyliusTranslationBundle/index.html的文档
如果你有什么想法,请告诉我。
谢谢
发布于 2015-03-26 14:55:24
只是好奇:
我试着用
"sylius/taxonomy-bundle": "~0.13"在我的项目中,需要加布里特纳利
"sylius/translation-bundle": "~0.13",
"sylius/locale-bundle": "~0.13",在symfony中,我还需要将包添加到内核中:
new Sylius\Bundle\TaxonomyBundle\SyliusTaxonomyBundle(),
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new Sylius\Bundle\TranslationBundle\SyliusTranslationBundle(),
new Sylius\Bundle\LocaleBundle\SyliusLocaleBundle(),和
#app/config/config.yml
sylius_taxonomy:
driver: doctrine/orm
classes:
taxonomy: ~
taxonomy_translation: ~
taxon: ~
taxon_translation: ~
sylius_locale:
driver: doctrine/orm和
#app/config/parameters.yml
sylius.translation.default.mapping:
translatable:
field: translations
currentLocale: currentLocale
fallbackLocale: fallbackLocale
translation:
field: translatable
locale: locale
sylius.locale: %locale%
sylius.context.locale: %locale%也许这会缩短别人的过程。
发布于 2015-02-13 10:33:28
https://stackoverflow.com/questions/28473544
复制相似问题