| 27 | @booter('models') |
| 28 | export 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 |