Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1x 1x 1x 1x 1x | import {
Application, Binding, BindingScope, Component, CoreBindings, inject,
} from '@loopback/core';
import { AwsServiceBindings } from './keys';
import { AwsCognitoService, AwsS3Service, AwsSesService, AwsSqsService } from '.';
export class AwsComponent implements Component {
bindings: Binding[] = [
Binding.bind(AwsServiceBindings.COGNITO_SERVICE)
.toClass(AwsCognitoService)
.inScope(BindingScope.SINGLETON),
Binding.bind(AwsServiceBindings.S3_SERVICE)
.toClass(AwsS3Service)
.inScope(BindingScope.SINGLETON),
Binding.bind(AwsServiceBindings.SES_SERVICE)
.toClass(AwsSesService)
.inScope(BindingScope.SINGLETON),
Binding.bind(AwsServiceBindings.SQS_SERVICE)
.toClass(AwsSqsService)
.inScope(BindingScope.SINGLETON),
];
constructor(@inject(CoreBindings.APPLICATION_INSTANCE) app: Application) { }
}
|