UNPKG

1.07 kBTypeScriptView Raw
1import { Application } from '@loopback/core';
2import { ArtifactOptions } from '../types';
3import { BaseArtifactBooter } from './base-artifact.booter';
4/**
5 * A class that extends BaseArtifactBooter to boot the 'Controller' artifact type.
6 * Discovered controllers are bound using `app.controller()`.
7 *
8 * Supported phases: configure, discover, load
9 *
10 * @param app - Application instance
11 * @param projectRoot - Root of User Project relative to which all paths are resolved
12 * @param bootConfig - Controller Artifact Options Object
13 */
14export declare class ControllerBooter extends BaseArtifactBooter {
15 app: Application;
16 controllerConfig: ArtifactOptions;
17 constructor(app: Application, projectRoot: string, controllerConfig?: ArtifactOptions);
18 /**
19 * Uses super method to get a list of Artifact classes. Boot each class by
20 * binding it to the application using `app.controller(controller);`.
21 */
22 load(): Promise<void>;
23}
24/**
25 * Default ArtifactOptions for ControllerBooter.
26 */
27export declare const ControllerDefaults: ArtifactOptions;