From 39926090ca627edd07f5f512012b9980128ee00b Mon Sep 17 00:00:00 2001 From: Alvin See Date: Wed, 18 Dec 2024 03:27:13 +0900 Subject: [PATCH] Add `Action.class` as part of the seed data in the Misk web module to allow for proper binding and injection of the `Action` class in Action Scope Providers. GitOrigin-RevId: abef12183dd325766b89dd811d3fd4cdc700f630 --- misk/src/main/kotlin/misk/web/MiskWebModule.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misk/src/main/kotlin/misk/web/MiskWebModule.kt b/misk/src/main/kotlin/misk/web/MiskWebModule.kt index 18167150b0..6e9f0ec589 100644 --- a/misk/src/main/kotlin/misk/web/MiskWebModule.kt +++ b/misk/src/main/kotlin/misk/web/MiskWebModule.kt @@ -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 @@ -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() }