aboutsummaryrefslogtreecommitdiff
path: root/src/background/usecases/FindUseCase.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/usecases/FindUseCase.ts')
-rw-r--r--src/background/usecases/FindUseCase.ts17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/background/usecases/FindUseCase.ts b/src/background/usecases/FindUseCase.ts
index d567800..41b9cbd 100644
--- a/src/background/usecases/FindUseCase.ts
+++ b/src/background/usecases/FindUseCase.ts
@@ -1,18 +1,15 @@
+import { injectable } from 'tsyringe';
import FindRepository from '../repositories/FindRepository';
import TabPresenter from '../presenters/TabPresenter';
import ConsoleClient from '../infrastructures/ConsoleClient';
+@injectable()
export default class FindUseCase {
- private tabPresenter: TabPresenter;
-
- private findRepository: FindRepository;
-
- private consoleClient: ConsoleClient;
-
- constructor() {
- this.tabPresenter = new TabPresenter();
- this.findRepository = new FindRepository();
- this.consoleClient = new ConsoleClient();
+ constructor(
+ private tabPresenter: TabPresenter,
+ private findRepository: FindRepository,
+ private consoleClient: ConsoleClient,
+ ) {
}
getKeyword(): Promise<string> {