# EntityRepositoryInterface Error when applying Shopware 6 developer training plugin

**URL:** <https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783>\
**Category:** Programming (EN)\
**Tags:** programming\
**Created:** [23. Mai 2023 um 10:24 UTC](https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783 "2023-05-23T10:24:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![isla\_che](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@isla\_che](https://forum.shopware.com/u/isla_che)\
**Post date:** [23. Mai 2023 um 10:24 UTC](https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783/1 "2023-05-23T10:24:43Z")

</div>

I’m new to Shopware development, i applied all the steps from this course, and I got this error :[https://academy.shopware.com/courses/take/shopware-6-developer-training-english](https://academy.shopware.com/courses/take/shopware-6-developer-training-english) `# SwagShopFinder\Storefront\Subscriber\FooterSubscriber::__construct(): Argument #2 ($shopFinderRepository) must be of type Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface, Shopware\Core\Framework\DataAbstractionLayer\EntityRepository given, called in /var/www/html/var/cache/dev_h987edf903817e2a73423ee1b0a6408d4/ContainerPblYUYE/Shopware_Core_KernelDevDebugContainer.php on line 33975`

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/5/6/5618cfb2ea57e4fdf25711c0e37c6ab7d378ea9c.png)

---

<div class="post-metadata">

**Author:** ![StefP](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@StefP](https://forum.shopware.com/u/StefP)\
**Post date:** [24. Mai 2023 um 08:27 UTC](https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783/2 "2023-05-24T08:27:21Z")

</div>

The example plug-in is not up to date. Just write EntityRepository instead of EntityRepositoryInterface and then it works.

![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/9/1/9181de7ee433f9086d2bd519c97582bb41959186.png)

---

<div class="post-metadata">

**Author:** ![isla\_che](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@isla\_che](https://forum.shopware.com/u/isla_che)\
**Post date:** [24. Mai 2023 um 09:12 UTC](https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783/3 "2023-05-24T09:12:33Z")

</div>

Thank you, i forgot to mention that i resolved it by writing EntityRepository instead of EntityRepositoryInterface, disabling then re-enabling the plugin and clearing the cache

---

<div class="post-metadata">

**Author:** ![essa.anid](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@essa.anid](https://forum.shopware.com/u/essa.anid)\
**Post date:** [2. August 2023 um 12:17 UTC](https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783/4 "2023-08-02T12:17:27Z")

</div>

It worked for me too, thank you
