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,21 @@
|
||||
/// Configuration de l'injection de dépendances pour le module Cotisations
|
||||
library cotisations_di;
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import '../bloc/contributions_bloc.dart';
|
||||
import '../data/repositories/contribution_repository.dart';
|
||||
|
||||
/// Enregistrer les dépendances du module Cotisations
|
||||
void registerCotisationsDependencies(GetIt getIt) {
|
||||
// Repository
|
||||
getIt.registerLazySingleton<ContributionRepository>(
|
||||
() => ContributionRepository(getIt<Dio>()),
|
||||
);
|
||||
|
||||
// BLoC
|
||||
getIt.registerFactory<ContributionsBloc>(
|
||||
() => ContributionsBloc(getIt<ContributionRepository>()),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user