亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

集成 sylius 條款和條件插件

集成 sylius 條款和條件插件

PHP
LEATH 2023-07-08 20:21:40
我正在嘗試將條款和條件插件集成到我的 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.yamlsetono_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%"問題出在這次課堂上,請任何人都可以幫助我。謝謝。
查看完整描述

1 回答

?
慕娘9325324

TA貢獻1783條經驗 獲得超4個贊

此參數由SyliusResourceBundle設置,因此請確保在任何其他插件Sylius\Bundle\ResourceBundle\SyliusResourceBundle之前設置SyliusTermsPlugin。

作為一般規則,它應該是:

// config/bundles.php

<?php


return [

? ? // ...


? ? Sylius\Bundle\ResourceBundle\SyliusResourceBundle::class => ['all' => true],


? ? // All Sylius plugins


? ? Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],


? ? // ...

?];


查看完整回答
反對 回復 2023-07-08
  • 1 回答
  • 0 關注
  • 145 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號