Search code examples
symfonyshopware

How to override subscriber in Shopware 6?


I would like to override a plugin's event subscriber. Is it possible by just adjusting the priority in the service.xml?

Are there any other ways to disable a subscriber?


Solution

  • I disabled the subscriber by decorating it. That way I could simply add a new getSubscribedEvents() function, that returns an empty array.

    see: https://developer.shopware.com/docs/guides/plugins/plugins/plugin-fundamentals/adjusting-service