Skip to content

Instantly share code, notes, and snippets.

@Rasalexman
Created October 27, 2019 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rasalexman/f0e35e6fdfbfe36d686114eb2d754ed4 to your computer and use it in GitHub Desktop.
Save Rasalexman/f0e35e6fdfbfe36d686114eb2d754ed4 to your computer and use it in GitHub Desktop.
class MyClass {
}
class MyClassNeedAnother(val myclass: MyClass) {
}
val kodi = kodi {
bind<MyClass>() with provider { MyClass() }
bind<MyClassNeedAnother>() with single { MyClassNeedAnother(instance()) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment