Skip to content

Commit c115a9c

Browse files
committed
change: Use the ServiceFactory type
1 parent a3148d2 commit c115a9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/catalyst_builder_container/lib/src/service_container.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ class ServiceContainer implements ServiceProvider, ServiceRegistry {
119119

120120
@override
121121
void register<T>(
122-
T Function(ServiceProvider) factory, [
122+
ServiceFactory<T> factory, [
123123
Service service = const Service(),
124124
]) {
125125
_registerInternal(T, factory, service);
126126
}
127127

128128
void _registerInternal<T>(
129129
Type tReal,
130-
T Function(ServiceProvider) factory, [
130+
ServiceFactory<T> factory, [
131131
Service service = const Service(),
132132
]) {
133133
_knownServices[tReal] = ServiceDescriptor(service, () => factory(this));

0 commit comments

Comments
 (0)