feat(unionflow): ajout Spec-Kit, constitution, mission mutuelles
- Config Spec-Kit pour Spec-Driven Development - CONSTITUTION.md + .specify/memory/constitution.md - Commandes Cursor /speckit.*, règles projet - Mission: associations + mutuelles d'épargne et de financement - .gitignore: versionner config spec-kit unionflow Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
library notifications_di;
|
||||
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import '../data/repositories/notification_repository.dart';
|
||||
import '../presentation/bloc/notifications_bloc.dart';
|
||||
|
||||
class NotificationsDI {
|
||||
static final GetIt _getIt = GetIt.instance;
|
||||
|
||||
static void register() {
|
||||
_getIt.registerLazySingleton<NotificationRepository>(
|
||||
() => NotificationRepositoryImpl(_getIt<Dio>()),
|
||||
);
|
||||
|
||||
_getIt.registerFactory<NotificationsBloc>(
|
||||
() => NotificationsBloc(_getIt<NotificationRepository>()),
|
||||
);
|
||||
}
|
||||
|
||||
static void unregister() {
|
||||
if (_getIt.isRegistered<NotificationsBloc>()) _getIt.unregister<NotificationsBloc>();
|
||||
if (_getIt.isRegistered<NotificationRepository>()) _getIt.unregister<NotificationRepository>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user