Integration sylius Terms & Conditions Plugin

I’m trying to integrate Terms & Conditions Plugin in my sylius plugin https://github.com/Setono/SyliusTermsPlugin. I add plugin before the grid bundle, but I have always this error "You have requested a non-existent parameter "setono_sylius_terms.model.terms.class".

This is my code:

# config/bundles.php
  SetonoSyliusTermsPluginSetonoSyliusTermsPlugin::class => ['all' => true],
  SyliusBundleGridBundleSyliusGridBundle::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

#vendorsetonosylius-terms-pluginsrcResourcesconfiggrids
  sylius_grid:
     grids:
      setono_sylius_terms_terms:
        driver:
            name: doctrine/orm
            options:
                class: "%setono_sylius_terms.model.terms.class%"

The Problem is on this call of class, please can anyone help me. Thanks.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *