blob: c186262759187f56ff3533281148d6bc9b5777a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* eslint-disable max-len */
import { LocalSettingRepository, SyncSettingRepository } from "./repositories/SettingRepository";
import { NotifierImpl } from "./presenters/Notifier";
import { CachedSettingRepositoryImpl } from "./repositories/CachedSettingRepository";
import { container } from 'tsyringe';
import HistoryRepositoryImpl from "./completion/impl/HistoryRepositoryImpl";
import BookmarkRepositoryImpl from "./completion/impl/BookmarkRepositoryImpl";
import TabRepositoryImpl from "./completion/impl/TabRepositoryImpl";
import {TabPresenterImpl} from "./presenters/TabPresenter";
container.register('LocalSettingRepository', { useValue: LocalSettingRepository });
container.register('SyncSettingRepository', { useClass: SyncSettingRepository });
container.register('CachedSettingRepository', { useClass: CachedSettingRepositoryImpl });
container.register('Notifier', { useClass: NotifierImpl });
container.register('HistoryRepository', { useClass: HistoryRepositoryImpl });
container.register('BookmarkRepository', { useClass: BookmarkRepositoryImpl });
container.register('TabRepository', { useClass: TabRepositoryImpl });
container.register('TabPresenter', { useClass: TabPresenterImpl });
|