1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import {BindingKey} from '@loopback/core';
|
7 | import {Bootstrapper} from './bootstrapper';
|
8 | import {BootOptions} from './types';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export namespace BootBindings {
|
14 | |
15 |
|
16 |
|
17 | export const BOOT_OPTIONS = BindingKey.create<BootOptions>('boot.options');
|
18 | |
19 |
|
20 |
|
21 | export const PROJECT_ROOT = BindingKey.create<string>('boot.project_root');
|
22 |
|
23 | |
24 |
|
25 |
|
26 | export const BOOTSTRAPPER_KEY = BindingKey.create<Bootstrapper>(
|
27 | 'application.bootstrapper',
|
28 | );
|
29 |
|
30 | |
31 |
|
32 |
|
33 | export const BOOTERS = 'booters';
|
34 | export const BOOTER_PREFIX = 'booters';
|
35 | }
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | export namespace BootTags {
|
41 | export const BOOTER = 'booter';
|
42 | |
43 |
|
44 |
|
45 | export const BOOTER_TAG = BootTags.BOOTER;
|
46 | }
|