Skip to content

Commit

Permalink
update scopeRequest doc
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 13, 2024
1 parent 3225d97 commit 6cd27bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/koin-ktor/ktor.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ fun Application.main() {
}
```

### Resolve from Ktor Request Scope (since 3.5.0)
### Resolve from Ktor Request Scope (since 4.1.0)

You can declare components to live within Ktor request scope timeline. For this, you just need to declare your component inside a `scope<ScopeRequest>` section. Given a `ScopeComponent` class to instantiate on RequestScope, let's declare it:
You can declare components to live within Ktor request scope timeline. For this, you just need to declare your component inside a `requestScope` section. Given a `ScopeComponent` class to instantiate on ktor web request scope, let's declare it:

```kotlin
scope<RequestScope>{
requestScope {
scopedOf(::ScopeComponent)
}
```
Expand Down

0 comments on commit 6cd27bf

Please sign in to comment.