Skip to content

Commit 5dfd111

Browse files
authored
Update docs/book/v5/core-features/dependency-injection.md
1 parent d153f3b commit 5dfd111

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/book/v5/core-features/dependency-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DotKernel API comes out of the box with
1515
[dot-dependency-injection](https://github.com/dotkernel/dot-dependency-injection) package, which provide all we need for
1616
injecting dependencies in any object you want.
1717

18-
`dot-dependency-injection` determines the dependencies by looking at the `#[Inject]` attribute,
18+
`dot-dependency-injection` determines the dependencies by looking at the `#[Inject]` attribute, added to the constructor
1919
added to the constructor of a class. Dependencies are specified as separate parameters of the `#[Inject]` attribute.
2020

2121
For our example we will inject a `UserService` and `config` dependencies in a `UseHandler`.

0 commit comments

Comments
 (0)