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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user