import { NgModule, ModuleWithProviders } from '@angular/core';

import { TokenService } from './token.service';
import { ApiOperatorTokenResolve, ApiConsumerTokenResolve } from './token.resolve';

@NgModule({
  providers: [TokenService, ApiConsumerTokenResolve, ApiOperatorTokenResolve]
})
export class TokenModule {
  static forRoot(): ModuleWithProviders {
    return {
      ngModule: TokenModule,
      providers: [TokenService]
    };
  }
}
