Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public extend(context: IContext): void {
this._context = context;
this._logger = context.getLogger(this);
this._context.install(
ContextViewExtension,
ViewManagerExtension,
StageObserverExtension,
MediatorMapExtension,
StageCrawlerExtension
);
this._context.addConfigHandler(instanceOfType(ContextView), this.handleContextView.bind(this));
this._context.whenInitializing(this.whenInitializing.bind(this));
this._context.afterDestroying(this.afterDestroying.bind(this));
}
public extend(context: IContext): void {
this._context = context;
this._logger = context.getLogger(this);
this._context.addConfigHandler(
instanceOfType(ContextView),
this.handleContextView.bind(this)
);
}
public extend(context: IContext): void {
this._injector = context.injector;
this._logger = context.getLogger(this);
context.beforeInitializing(this.beforeInitializing.bind(this));
context.addConfigHandler(instanceOfType(ContextView), this.handleContextView.bind(this));
}