aboutsummaryrefslogtreecommitdiffstats
path: root/providers/LegacyHasherProvider.ts
diff options
context:
space:
mode:
Diffstat (limited to 'providers/LegacyHasherProvider.ts')
-rw-r--r--providers/LegacyHasherProvider.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/providers/LegacyHasherProvider.ts b/providers/LegacyHasherProvider.ts
index 05b2d27..a4a25d9 100644
--- a/providers/LegacyHasherProvider.ts
+++ b/providers/LegacyHasherProvider.ts
@@ -1,14 +1,14 @@
1import { ApplicationContract } from '@ioc:Adonis/Core/Application'; 1import { LegacyHashDriver } from './LegacyHashDriver.js'
2import { LegacyHashDriver } from './LegacyHashDriver'; 2import { ApplicationService } from '@adonisjs/core/types'
3 3
4export default class LegacyHasherProvider { 4export default class LegacyHasherProvider {
5 constructor(protected app: ApplicationContract) {} 5 constructor(protected app: ApplicationService) {}
6 6
7 public async boot() { 7 public async boot() {
8 const Hash = this.app.container.use('Adonis/Core/Hash'); 8 const Hash = this.app.container.use('Adonis/Core/Hash')
9 9
10 Hash.extend('legacy', () => { 10 Hash.extend('legacy', () => {
11 return new LegacyHashDriver(); 11 return new LegacyHashDriver()
12 }); 12 })
13 } 13 }
14} 14}