aboutsummaryrefslogtreecommitdiff
path: root/src/background/di.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-03-28 21:35:06 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-03-28 21:43:40 +0900
commitea63c5f78b4c985e9d6dd106afe4f97bfeedbcd0 (patch)
treef0accb862f9f3b75c8c86f78361e2acab46f11ef /src/background/di.ts
parenta8d78f1286fb3fe456a786b2c0e534d212835560 (diff)
Complete tabs by the completion packages
Diffstat (limited to 'src/background/di.ts')
-rw-r--r--src/background/di.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/background/di.ts b/src/background/di.ts
index 0b52e0b..c186262 100644
--- a/src/background/di.ts
+++ b/src/background/di.ts
@@ -6,6 +6,8 @@ import { CachedSettingRepositoryImpl } from "./repositories/CachedSettingReposit
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 });
@@ -13,3 +15,5 @@ container.register('CachedSettingRepository', { useClass: CachedSettingRepositor
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 });