Skip to content

Commit

Permalink
ktor: update docs and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Jan 7, 2025
1 parent 0988062 commit 17c316d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion doc/modules/framework/pages/ktor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ help us with that by defining a DI container that can be retrieve from multiple

- Application
- ApplicationCall
- Routing / Routes
- Routing / Routes / RoutingContext

[source, kotlin]
.Example: a Ktor Application declaration, installing the `DIPlugin`, and retrieving it from routes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ import org.kodein.di.DI
import org.kodein.di.bindInstance
import org.kodein.di.ktor.DIPlugin.Plugin

@Deprecated(
"This is deprecated since Ktor 2+ has renamed the concept",
ReplaceWith("DIPlugin"),
DeprecationLevel.ERROR
)
public typealias DIFeature = DIPlugin

/**
* Ktor [Plugin] that provide a global [DI] container
* that would be accessible from everywhere in the Ktor application
Expand Down

0 comments on commit 17c316d

Please sign in to comment.