aboutsummaryrefslogtreecommitdiff
path: root/src/content/controllers/FindController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/controllers/FindController.ts')
-rw-r--r--src/content/controllers/FindController.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/content/controllers/FindController.ts b/src/content/controllers/FindController.ts
index cf27a8d..7735176 100644
--- a/src/content/controllers/FindController.ts
+++ b/src/content/controllers/FindController.ts
@@ -1,13 +1,12 @@
+import { injectable } from 'tsyringe';
import * as messages from '../../shared/messages';
import FindUseCase from '../usecases/FindUseCase';
+@injectable()
export default class FindController {
- private findUseCase: FindUseCase;
-
- constructor({
- findUseCase = new FindUseCase(),
- } = {}) {
- this.findUseCase = findUseCase;
+ constructor(
+ private findUseCase: FindUseCase,
+ ) {
}
async start(m: messages.ConsoleEnterFindMessage): Promise<void> {