Skip to content

Commit

Permalink
chore(di): Remove static method InjectorService.load
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Remove static method InjectorService.load. Create a new instance of InjectorService and use injector.load instead of.
  • Loading branch information
Romakita committed Dec 23, 2018
1 parent 68d065e commit 37b1de8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/di/src/services/InjectorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,19 +649,6 @@ export class InjectorService extends Map<RegistryKey, Provider<any>> {
static has(target: any): boolean {
return globalInjector.has(target);
}

/**
* Initialize injectorService and load all services/factories.
*/
@Deprecated("removed feature")
/* istanbul ignore next */
static async load() {
if (!globalInjector) {
globalInjector = new InjectorService();
}

return globalInjector.load();
}
}

/**
Expand Down

0 comments on commit 37b1de8

Please sign in to comment.