To take the example in <https://insert-koin.io/doc...
# koin
m
To take the example in https://insert-koin.io/docs/1.0/documentation/koin-core/index.html#_binding_additional_type, if I had the following:
Copy code
// Service interface
interface Service{
    fun doSomething()
}

// OtherService interface
interface OtherService {
   fun doOtherThing()
}

// Service Implementation
class ServiceImp() : Service, OtherService {
    fun doSomething() { ... }
    fun doOtherThing() { ... } 
}
How could I write my module definition such that the
single
ServiceImpl
is bound to both
Service
and
OtherService
?
a
just
single<Service>{ ServiceImpl() } bind OtherService::class
m
@arnaud.giuliani thanks for that. Not that I’m facing the problem now, but if I wanted to bind three Interfaces to a single Implementation, is there syntax to do that?
a
continue with
bind
operator
this is the standard way to add additional type binding to your definition
m
OK, so multiple lines, each one binding some interface to an implementation? Thanks.