1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

add a new Party.EnsureStaticBindings method - read HISTORY.md

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-03-12 12:32:27 +02:00
parent 7ab0f6fff5
commit 9cf6f9fa5e
6 changed files with 26 additions and 0 deletions

View File

@@ -71,6 +71,10 @@ func makeStruct(structPtr interface{}, c *Container, partyParamsCount int) *Stru
elem.FieldByIndex(b.Input.StructFieldIndex).Set(input)
} else if !b.Dependency.Static {
if c.DisableStructDynamicBindings {
panic(fmt.Sprintf("binder: DisableStructDynamicBindings setting is set to true: dynamic binding found: %s", b.String()))
}
singleton = false
}
}