We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've created some extensions for my project. Maybe it should be in KTP?
/** Shorter call of `bind(...).toInstance(...)`. Class of binding retrieved from [T]. */ inline fun <reified T : Any> Module.bindInstance(instance: T) { bind(T::class).toInstance(instance) } /** Simplified syntax to install one module to scope. */ inline fun Scope.installModule(crossinline bindings: Module.() -> Unit): Scope { return installModules(module { bindings() }) } /** Close scope. */ fun Scope.close() { KTP.closeScope(name) }
The text was updated successfully, but these errors were encountered:
Thank you for the idea!
Regarding the first one: Module.bindInstance we try to keep the following pattern so the api is predictable: bind(x).to...
Module.bindInstance
bind(x).to...
We will consider the other two for TP 4 as we plan to improve the API.
Thx again :)
Sorry, something went wrong.
No branches or pull requests
I've created some extensions for my project. Maybe it should be in KTP?
The text was updated successfully, but these errors were encountered: