blob: 5e6ad03268a10823901e727dce04c3a7c957664c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* 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 });
|