aboutsummaryrefslogtreecommitdiff
path: root/src/background/di.ts
blob: 9fc230ce2809e5027f217d8ba89ac705a5926b91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* eslint-disable max-len */

import { LocalSettingRepository, SyncSettingRepository } from "./repositories/SettingRepository";
import { NotifierImpl } from "./presenters/Notifier";
import { CachedSettingRepositoryImpl } from "./repositories/CachedSettingRepository";
import { container } from 'tsyringe';

container.register('LocalSettingRepository', { useValue: LocalSettingRepository });
container.register('SyncSettingRepository', { useClass: SyncSettingRepository });
container.register('CachedSettingRepository', { useClass: CachedSettingRepositoryImpl });
container.register('Notifier', { useClass: NotifierImpl });