Some checks failed
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Mobile App CI / test (push) Has been cancelled
Web App CI / test (push) Has been cancelled
Deploy Telegram Bot / Deploy Telegram Bot (push) Has been cancelled
Mobile App CI / build-android (push) Has been cancelled
Mobile App CI / build-ios (push) Has been cancelled
Web App CI / build (push) Has been cancelled
18 lines
498 B
Dart
18 lines
498 B
Dart
import 'dart:io';
|
|
|
|
import 'package:injectable/injectable.dart';
|
|
import '../../database/database.dart';
|
|
import '../../main.dart' as backend_main;
|
|
import '../../storage/minio_config.dart';
|
|
|
|
@module
|
|
abstract class AppModule {
|
|
@singleton
|
|
AppDatabase get database => backend_main.database;
|
|
|
|
// YooMoneyHandler is registered via @LazySingleton() annotation
|
|
// in yoo_money.dart, so we don't need to register it here
|
|
|
|
@singleton
|
|
MinioConfig get minioConfig => MinioConfig.fromEnvironment();
|
|
}
|