Colton Idle
10/23/2023, 5:31 AMsingle(createdAtStart = true) { ConcreteRandomNameGenerator() }
single(createdAtStart = true) {
val random: InterfaceRandomNameGenerator = get()
val foo = Foo.init(random.getRand()).build()
foo
}
I'm currently getting a crash saying that No definition found for type InterfaceRandomNameGenerator
Jonas
10/23/2023, 5:33 AMsingle<InterfaceRandomNameGenerator> { ConcreteRandomNameGenerator() }
there you go 🙂