我正在尝试将条款和条件插件集成到我的 sylius 插件https://github.com/Setono/SyliusTermsPlugin中。我在网格包之前添加插件,但总是出现此错误“您请求了一个不存在的参数“setono_sylius_terms.model.terms.class”。
这是我的代码:
# config/bundles.php
Setono\SyliusTermsPlugin\SetonoSyliusTermsPlugin::class => ['all' => true],
Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true]
# config/packages/_sylius.yaml
- { resource: "@SetonoSyliusTermsPlugin/Resources/config/app/config.yaml" }
# config/routes.yaml
setono_sylius_terms_shop:
resource: "@SetonoSyliusTermsPlugin/Resources/config/shop_routing.yaml"
prefix: /{_locale}
requirements:
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
setono_sylius_terms_admin:
resource: "@SetonoSyliusTermsPlugin/Resources/config/admin_routing.yaml"
prefix: /admin
#vendor\setono\sylius-terms-plugin\src\Resources\config\grids
sylius_grid:
grids:
setono_sylius_terms_terms:
driver:
name: doctrine/orm
options:
class: "%setono_sylius_terms.model.terms.class%"
问题出在这次课堂上,请任何人都可以帮助我。谢谢。
慕娘9325324