Created
February 19, 2020 00:49
-
-
Save markchristopherng/825e63af3198d07ae33cfc2ad71f6be5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val kodeinModule = Kodein.Module(name = "appmodule") { | |
bind() from singleton { MessageData() } | |
bind<TimeService>() with singleton { TimeServiceImpl() } | |
bind<GreetingService>() with singleton { | |
GreetingServiceImpl(instance(), instance()) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment