1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | exports.BootComponent = void 0;
|
8 | const tslib_1 = require("tslib");
|
9 | const core_1 = require("@loopback/core");
|
10 | const booters_1 = require("./booters");
|
11 | const bootstrapper_1 = require("./bootstrapper");
|
12 | const keys_1 = require("./keys");
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | let BootComponent = class BootComponent {
|
19 | |
20 |
|
21 |
|
22 |
|
23 | constructor(app) {
|
24 |
|
25 |
|
26 | this.booters = [
|
27 | booters_1.ApplicationMetadataBooter,
|
28 | booters_1.ControllerBooter,
|
29 | booters_1.RepositoryBooter,
|
30 | booters_1.ServiceBooter,
|
31 | booters_1.DataSourceBooter,
|
32 | booters_1.LifeCycleObserverBooter,
|
33 | booters_1.InterceptorProviderBooter,
|
34 | booters_1.ModelApiBooter,
|
35 | booters_1.ModelBooter,
|
36 | ];
|
37 |
|
38 | app
|
39 | .bind(keys_1.BootBindings.BOOTSTRAPPER_KEY)
|
40 | .toClass(bootstrapper_1.Bootstrapper)
|
41 | .inScope(core_1.BindingScope.SINGLETON);
|
42 | }
|
43 | };
|
44 | BootComponent = tslib_1.__decorate([
|
45 | tslib_1.__param(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
46 | tslib_1.__metadata("design:paramtypes", [core_1.Application])
|
47 | ], BootComponent);
|
48 | exports.BootComponent = BootComponent;
|
49 |
|
\ | No newline at end of file |