Hi folks Is there any way to inject a parameter in...
# koin
l
Hi folks Is there any way to inject a parameter into a constructor? This is because I need my class to extend another one, passing this parameter
Copy code
class MyService(config: MyConfig) :
    BaseService(config)
I'd prefer to inject the config, aka something like
Copy code
val config by inject<MyConfig>()
Currently I have to instanciate MyService with
Copy code
single {MyService(get())}
=> here I'd like to avoid the
get()
l
I have read it many times but I realize I did not understand it... thanks 🙏