Switch existing service implementation to a custom one before usage #1686
lucian-torje-siemens
started this conversation in
Ideas
Replies: 1 comment 15 replies
-
Hi, the way to achieve that is to register the "default" one with the |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to be able to register my own service before it gets used by other registered service - e.g. CatalogService
It is possible to register my own service - the issue is that the other registered services using it, will still use the old one instead of my own.
The main idea is to register a service with priority - meaning that those special services (components) get registered before the default ones and custom ones cannot be overwritten once created (and will be injected instead of the default ones in other components).
Beta Was this translation helpful? Give feedback.
All reactions