diff options
author | 2024-02-10 18:19:14 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | 7584d2d7a7110aef0331ebfa178b2295842c59fa (patch) | |
tree | 900cd71237e6231b57936fcce77ff229cd459041 /providers/LegacyHasherProvider.ts | |
parent | upgrade recipes submodule (diff) | |
download | ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip |
refactor: project maintenance
- work in progress
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 | } |