diff options
Diffstat (limited to 'providers/LegacyHasherProvider.ts')
-rw-r--r-- | providers/LegacyHasherProvider.ts | 12 |
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 @@ | |||
1 | import { ApplicationContract } from '@ioc:Adonis/Core/Application'; | 1 | import { LegacyHashDriver } from './LegacyHashDriver.js' |
2 | import { LegacyHashDriver } from './LegacyHashDriver'; | 2 | import { ApplicationService } from '@adonisjs/core/types' |
3 | 3 | ||
4 | export default class LegacyHasherProvider { | 4 | export 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 | } |