Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Jan 13, 2023
1 parent 11e36d0 commit 0053dee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/antora.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: kodein
title: Kodein
version: '7.17'
display_version: '7.17.0'
display_version: '7.17.1'
nav:
- modules/ROOT/nav.adoc
- modules/core/nav.adoc
Expand All @@ -11,6 +11,6 @@ nav:
asciidoc:
attributes:
branch: '7.17'
version: '7.17.0'
version: '7.17.1'
kotlin: '1.8.0'
jdk: '1.8'
11 changes: 10 additions & 1 deletion doc/modules/core/pages/bindings.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,16 @@ val di = DI {
----
<1> Binding of `Dice`. It gets its transitive dependencies.
This tricks is limited to 0 to 10 constructor parameters.
Or even more concise:
[source, kotlin]
----
val di = DI {
bindSingletonOf(::Dice) // <1>
}
----
<1> Binding of `Dice`. It gets its transitive dependencies.
Those tricks are limited to 0 to 10 constructor parameters.
====

The binding functions are in the same environment as the `newInstance` function described in the <<injection, dependency injection section>>.
Expand Down

0 comments on commit 0053dee

Please sign in to comment.