diff --git a/doc/antora.yml b/doc/antora.yml index ede00fcd..0aea3c28 100644 --- a/doc/antora.yml +++ b/doc/antora.yml @@ -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 @@ -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' \ No newline at end of file diff --git a/doc/modules/core/pages/bindings.adoc b/doc/modules/core/pages/bindings.adoc index 02630a71..76e839d0 100644 --- a/doc/modules/core/pages/bindings.adoc +++ b/doc/modules/core/pages/bindings.adoc @@ -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 <>.