- 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
17 lines
553 B
Dart
17 lines
553 B
Dart
/// Configuration de l'injection de dépendances pour le module Solidarité (demandes d'aide)
|
|
library solidarity_di;
|
|
|
|
import 'package:get_it/get_it.dart';
|
|
import 'package:dio/dio.dart';
|
|
import '../bloc/solidarity_bloc.dart';
|
|
import '../data/repositories/demande_aide_repository.dart';
|
|
|
|
void registerSolidarityDependencies(GetIt getIt) {
|
|
getIt.registerLazySingleton<DemandeAideRepository>(
|
|
() => DemandeAideRepositoryImpl(getIt<Dio>()),
|
|
);
|
|
getIt.registerFactory<SolidarityBloc>(
|
|
() => SolidarityBloc(getIt<DemandeAideRepository>()),
|
|
);
|
|
}
|