Skip to content

Commit

Permalink
Add Action.class as part of the seed data in the Misk web
Browse files Browse the repository at this point in the history
module to allow for proper binding and injection of the `Action` class
in Action Scope Providers.

GitOrigin-RevId: abef12183dd325766b89dd811d3fd4cdc700f630
  • Loading branch information
alvinsee authored and svc-squareup-copybara committed Dec 17, 2024
1 parent ccacf18 commit 3992609
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misk/src/main/kotlin/misk/web/MiskWebModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.google.inject.multibindings.MapBinder
import com.squareup.wire.GrpcException
import jakarta.inject.Inject
import jakarta.inject.Singleton
import misk.Action
import misk.ApplicationInterceptor
import misk.MiskCaller
import misk.MiskDefault
Expand Down Expand Up @@ -143,6 +144,7 @@ class MiskWebModule @JvmOverloads constructor(
bindSeedData(HttpCall::class)
bindSeedData(HttpRequest::class)
bindSeedData(HttpServletRequest::class)
bindSeedData(Action::class)
bindProvider(miskCallerType, MiskCallerProvider::class)
newMultibinder<MiskCallerAuthenticator>()
}
Expand Down

0 comments on commit 3992609

Please sign in to comment.