Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
registerAll(): void {
this.container.loadModules([
[`${__dirname}/business/**/*.js`, Lifetime.TRANSIENT],
[`${__dirname}/services/**/*.js`, Lifetime.SINGLETON],
[`${__dirname}/adapters/**/*.js`, Lifetime.TRANSIENT]
], {
formatName: 'camelCase',
cwd: '.',
registrationOptions: {
resolutionMode: ResolutionMode.CLASSIC
}
});
debug('app:dependency-resolver')(this.container.registrations);
}
}