MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / constructor

Method constructor

packages/boot/src/booters/model.booter.ts:29–41  ·  view source on GitHub ↗
(
    @inject(CoreBindings.APPLICATION_INSTANCE)
    public app: ApplicationWithRepositories,
    @inject(BootBindings.PROJECT_ROOT) projectRoot: string,
    @config()
    public modelConfig: ArtifactOptions = {},
  )

Source from the content-addressed store, hash-verified

27@booter('models')
28export class ModelBooter extends BaseArtifactBooter {
29 constructor(
30 @inject(CoreBindings.APPLICATION_INSTANCE)
31 public app: ApplicationWithRepositories,
32 @inject(BootBindings.PROJECT_ROOT) projectRoot: string,
33 @config()
34 public modelConfig: ArtifactOptions = {},
35 ) {
36 super(
37 projectRoot,
38 // Set Model Booter Options if passed in via bootConfig
39 Object.assign({}, ModelDefaults, modelConfig),
40 );
41 }
42
43 /**
44 * Uses super method to get a list of Artifact classes. Boot each file by

Callers

nothing calls this directly

Calls 2

injectFunction · 0.85
configFunction · 0.85

Tested by

no test coverage detected