Page Contents
Home > @loopback/boot > ControllerBooter
ControllerBooter class
A class that extends BaseArtifactBooter to boot the ‘Controller’ artifact type. Discovered controllers are bound using app.controller().
Supported phases: configure, discover, load
Signature:
export declare class ControllerBooter extends BaseArtifactBooter
Extends: BaseArtifactBooter
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(app, projectRoot, controllerConfig) | Constructs a new instance of the ControllerBooter class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| app | Application | ||
| controllerConfig | ArtifactOptions |
Methods
| Method | Modifiers | Description |
|---|---|---|
| load() | Uses super method to get a list of Artifact classes. Boot each class by binding it to the application using app.controller(controller);. |