diff --git a/lib/server.dart b/lib/server.dart index ad4bc15..a51a3f5 100644 --- a/lib/server.dart +++ b/lib/server.dart @@ -16,7 +16,6 @@ import 'package:crypto/crypto.dart'; import 'package:stack_trace/stack_trace.dart'; import 'package:di/di.dart'; -import 'package:di/auto_injector.dart'; import 'query_map.dart'; diff --git a/lib/src/setup_impl.dart b/lib/src/setup_impl.dart index e8dca7e..7e49f6b 100644 --- a/lib/src/setup_impl.dart +++ b/lib/src/setup_impl.dart @@ -346,7 +346,7 @@ void _scanHandlers([List libraries]) { }); _modules.add(baseModule); - _injector = defaultInjector(modules: _modules); + _injector = new ModuleInjector(_modules); routes.forEach((r) => _configureTarget(manager.serverMetadata, r.metadata, r.lib.def, r.method, urlPrefix: r.lib.conf.urlPrefix)); diff --git a/pubspec.yaml b/pubspec.yaml index 0c909d4..7881d19 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: redstone -version: 0.5.9 +version: 0.5.10 author: Luiz Mineo description: A metadata driven microframework for Dart homepage: http://redstonedart.org @@ -9,11 +9,11 @@ dependencies: collection: '>=0.9.3+1 <0.10.0' crypto: '>=0.9.0 <0.10.0' grinder: '>=0.5.2 <0.6.0' - route_hierarchical: '>=0.4.20 <0.5.0' - di: ">=0.0.40 <2.0.0-alpha.1" - shelf: ">=0.5.4+1 <0.6.0" + route_hierarchical: '>=0.4.21 <0.5.0' + di: ">=2.0.1 <3.0.0" + shelf: ">=0.5.4+2 <0.6.0" mime: ">=0.9.0+1 <0.10.0" - http: ">=0.11.1 <0.12.0" + http: ">=0.11.1+1 <0.12.0" stack_trace: ">=0.9.1 <2.0.0" dev_dependencies: - unittest: '>=0.10.0 <0.12.0' + unittest: '>=0.11.0+3 <0.12.0'