loevgaard / SyliusBrandPlugin

A Sylius plugin to enable the association of brands to your products
MIT License
30 stars 29 forks source link

for sylius 1.11 #206

Closed Olivier127 closed 1 year ago

Olivier127 commented 2 years ago

Add parameters

parameters:
  loevgaard_sylius_brand.model.brand.class: Loevgaard\SyliusBrandPlugin\Model\Brand
  loevgaard_sylius_brand.model.brand_image.class: Loevgaard\SyliusBrandPlugin\Model\BrandImage

to loevgaard_sylius_brand.yaml

Roshyo commented 2 years ago

Hi @Olivier127 Could you elaborate on why would that be needed? I'm afraid I don't understand.

remylrt commented 2 years ago

Hi @Roshyo, I tried to install the plugin in my Sylius 1.11 project but Symfony was unable to resolve Brand and BrandImage classes paths. image Olivier's code solves the problem :)

loevgaard commented 1 year ago

That's because the plugin class should be added above the grid bundle class in bundles.php :)