This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
import { ApplicationContract } from '@ioc:Adonis/Core/Application';
export default class HashProvider {
protected app: ApplicationContract;
constructor(app: ApplicationContract);
static needsApplication: boolean;
register(): void;
}
+24
View File
@@ -0,0 +1,24 @@
"use strict";
/*
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
Object.defineProperty(exports, "__esModule", { value: true });
class HashProvider {
constructor(app) {
this.app = app;
}
register() {
this.app.container.singleton('Adonis/Core/Hash', () => {
const config = this.app.container.resolveBinding('Adonis/Core/Config').get('hash', {});
const { Hash } = require('../src/Hash');
return new Hash(this, config);
});
}
}
exports.default = HashProvider;
HashProvider.needsApplication = true;