Closed selat closed 2 years ago
Thanks for reporting. Service errors are really hard to maintain right now as they are not tested continuously. I'll take a look at it soon.
Also services are not forced to inherit from kgr::service
. As long as the implementation is done correctly, the container should accept it.
It should print the correct error message now, and there are tests to enforce this.
If you pass some random class (not related to dependency injection) to kgr::debug::service it doesn't report an error.
To Reproduce
Expected behavior Error message with something like "Class doesn't inherit from kgr::service".
Desktop