Update service registration to use singleton instead of factory

This commit is contained in:
2025-09-22 18:52:07 +02:00
parent eb8b40c4cd
commit f3bee63893

View File

@@ -60,7 +60,7 @@ class _AppService {
///
/// `serviceFactory` - A factory method to create the service implementation.
void registerSingleton<T extends Service>(T Function() serviceFactory) {
_kiwi.registerFactory<T>((c) => serviceFactory());
_kiwi.registerSingleton<T>((c) => serviceFactory());
}
/// Resolves and retrieves the registered service.