From 937f86d4104ece4afb5744a8d314b62fee6a2266 Mon Sep 17 00:00:00 2001 From: Julian Finkler Date: Sun, 2 Feb 2020 19:22:29 +0100 Subject: [PATCH] Fixed missing usage of ServiceFactory --- CHANGELOG.md | 3 +++ lib/dependency_container.dart | 6 +++--- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94b9338..e6d26bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.2 +- Fixed missing usage of ServiceFactory + ## 1.0.1 - pub.dev suggestions implemented diff --git a/lib/dependency_container.dart b/lib/dependency_container.dart index 349425a..0bf6fd1 100644 --- a/lib/dependency_container.dart +++ b/lib/dependency_container.dart @@ -81,7 +81,7 @@ class DependencyContainer implements DependencyContainerInterface { @override void registerWithDependencies( - Function serviceFactory, + ServiceFactory serviceFactory, List dependencies, ) { _factories[T] = _ServiceWithDependencies(serviceFactory, dependencies); @@ -89,7 +89,7 @@ class DependencyContainer implements DependencyContainerInterface { @override void registerInterfaceWithDependencies( - Function serviceFactory, + ServiceFactory serviceFactory, List dependencies, ) { _factories[TB] = _ServiceWithDependencies(serviceFactory, dependencies); @@ -168,7 +168,7 @@ class DependencyContainer implements DependencyContainerInterface { } class _ServiceWithDependencies { - final Function serviceFactory; + final ServiceFactory serviceFactory; final List dependencies; _ServiceWithDependencies( diff --git a/pubspec.yaml b/pubspec.yaml index b42b47e..6a13c55 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: flutter_catalyst -version: 1.0.1 +version: 1.0.2 description: A dependency injection container which also supports autowiring of services. homepage: https://github.com/mintware-de/flutter_catalyst environment: