BitBagCommerce / SyliusVueStorefront2Plugin

SyliusVueStorefront2Plugin provides everything you need to integrate your Sylius back-end with Vue Storefront 2.
MIT License
24 stars 16 forks source link

TaxonRepository decoration type error #96

Open QuentinDess opened 6 months ago

QuentinDess commented 6 months ago

Hello ✋ I face an issue with a new setup of Sylius and this plugin I follow every step of the documentation , and my sylius/sylius version is 1.11.15 The issue is located with this config

sylius_taxonomy:
    resources:
        taxon:
            classes:
                model: App\Entity\Taxonomy\Taxon
                repository: BitBag\SyliusVueStorefront2Plugin\Doctrine\Repository\TaxonRepository
            translation:
                classes:
                    model: App\Entity\Taxonomy\TaxonTranslation

When i go to any kind of url i have this error

BitBag\SyliusVueStorefront2Plugin\Doctrine\Repository\TaxonRepository::__construct(): Argument #1 ($decoratedRepository) 
must be of type Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface, 

ContainerQSsNVi1\EntityManager_9a5be93 given, called in /backend/var/cache/dev/ContainerQSsNVi1/getSylius_Repository_TaxonService.php on line 32

Any idea about this ? I try to decorate manually the file but still the same . I a m using symfony 5.4 Thanks

Dragnucs commented 6 months ago

Facing the same issue. For now I removed the line repository: BitBag\SyliusVueStorefront2Plugin\Doctrine\Repository\TaxonRepository and looking what issues this change may bring, yet, I could get past this error.