mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +00:00
HandleHTTPError MVC Method as requested at #1595. Read HISTORY.md
example at: https://github.com/kataras/iris/tree/master/_examples/mvc/error-handler-http
This commit is contained in:
@@ -88,9 +88,7 @@ func makeStruct(structPtr interface{}, c *Container, partyParamsCount int) *Stru
|
||||
newContainer := c.Clone()
|
||||
// Add the controller dependency itself as func dependency but with a known type which should be explicit binding
|
||||
// in order to keep its maximum priority.
|
||||
newContainer.Register(s.Acquire).
|
||||
Explicitly().
|
||||
DestType = typ
|
||||
newContainer.Register(s.Acquire).Explicitly().DestType = typ
|
||||
|
||||
newContainer.GetErrorHandler = func(ctx *context.Context) ErrorHandler {
|
||||
if isErrHandler {
|
||||
|
||||
Reference in New Issue
Block a user