aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/AddonEnabledController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/controllers/AddonEnabledController.ts')
-rw-r--r--src/background/controllers/AddonEnabledController.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/background/controllers/AddonEnabledController.ts b/src/background/controllers/AddonEnabledController.ts
index 251af25..903df40 100644
--- a/src/background/controllers/AddonEnabledController.ts
+++ b/src/background/controllers/AddonEnabledController.ts
@@ -1,10 +1,12 @@
+import { injectable } from 'tsyringe';
import AddonEnabledUseCase from '../usecases/AddonEnabledUseCase';
+@injectable()
export default class AddonEnabledController {
- private addonEnabledUseCase: AddonEnabledUseCase;
- constructor() {
- this.addonEnabledUseCase = new AddonEnabledUseCase();
+ constructor(
+ private addonEnabledUseCase: AddonEnabledUseCase,
+ ) {
}
indicate(enabled: boolean): Promise<any> {