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 createInjector(settings: any = {}) {
const injector = new InjectorService();
// Init settings
injector.settings = createSettingsService(injector);
injector.logger = $log;
injector.settings.scopes = {
...(settings.scopes || {}),
[ProviderType.CONTROLLER]: settings.controllerScope
};
// @ts-ignore
injector.settings.set(settings);
/* istanbul ignore next */
if (injector.settings.env === "test") {
injector.logger.stop();