mirror of
https://github.com/kataras/iris.git
synced 2026-01-26 21:35:56 +00:00
fix https://github.com/kataras/iris/issues/1450 and continue on implementing 1449
Former-commit-id: 617f64d061e88f050a443ea1751fa244164656c5
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"reflect"
|
||||
|
||||
"github.com/kataras/iris/v12/context"
|
||||
"github.com/kataras/iris/v12/hero/di"
|
||||
)
|
||||
|
||||
// weak because we don't have access to the path, neither
|
||||
@@ -17,7 +18,7 @@ type params struct {
|
||||
next int
|
||||
}
|
||||
|
||||
func (p *params) resolve(index int, typ reflect.Type) (reflect.Value, bool) {
|
||||
func (p *params) resolve(index int, typ reflect.Type, _ di.Values) (reflect.Value, bool) {
|
||||
currentParamIndex := p.next
|
||||
v, ok := context.ParamResolverByTypeAndIndex(typ, currentParamIndex)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user