diff --git a/lib/src/http/server.dart b/lib/src/http/server.dart index 528392aa..7efa66a5 100644 --- a/lib/src/http/server.dart +++ b/lib/src/http/server.dart @@ -242,7 +242,7 @@ class Angel extends AngelBase { } // Run a function after injecting from service container - Future runContained(Function handler, RequestContext req, ResponseContext res) async { + Future runContained(Function handler, RequestContext req, ResponseContext res, {Map namedParameters, Map injecting}) async { ClosureMirror closureMirror = reflect(handler); List args = []; @@ -254,7 +254,7 @@ class Angel extends AngelBase { else { // First, search to see if we can map this to a type if (parameter.type.reflectedType != dynamic) { - args.add(container.make(parameter.type.reflectedType)); + args.add(container.make(parameter.type.reflectedType, namedParameters: namedParameters, injecting: injecting)); } else { String name = MirrorSystem.getName(parameter.simpleName); diff --git a/pubspec.yaml b/pubspec.yaml index 90a765db..66f86f61 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_framework -version: 1.0.0-dev.17 +version: 1.0.0-dev.18 description: Core libraries for the Angel framework. author: Tobe O homepage: https://github.com/angel-dart/angel_framework