I have created a plugin. and i use Shopware()->Shop()->getCurrency()->getId() inside a function not in constructor i got the following error.
You have requested a non-existent service "shop".
Is there any way to use this shop instance in my plugin? I am running the plugin via CLI
I am using shopware 5.5.6.
- Accepted Answer