Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getConfiguration(module: any, configuration: any = {}) {
const provider = GlobalProviders.get(constructorOf(module))!;
return {...provider.configuration, ...configuration};
}
function createSettingsService(injector: InjectorService) {
const provider = GlobalProviders.get(ServerSettingsService)!.clone();
provider.instance = injector.invoke(provider.useClass);
injector.addProvider(ServerSettingsService, provider);
return provider.instance;
}