|
1 | | -import {ActionParameterHandler} from "./ActionParameterHandler"; |
2 | | -import {MetadataBuilder} from "./metadata-builder/MetadataBuilder"; |
3 | | -import {ActionMetadata} from "./metadata/ActionMetadata"; |
4 | 1 | import {Action} from "./Action"; |
| 2 | +import {ActionMetadata} from "./metadata/ActionMetadata"; |
| 3 | +import {ActionParameterHandler} from "./ActionParameterHandler"; |
5 | 4 | import {Driver} from "./driver/Driver"; |
6 | | -import {isPromiseLike} from "./util/isPromiseLike"; |
7 | | -import {runInSequence} from "./util/runInSequence"; |
| 5 | +import {InterceptorInterface} from "./InterceptorInterface"; |
8 | 6 | import {InterceptorMetadata} from "./metadata/InterceptorMetadata"; |
| 7 | +import {MetadataBuilder} from "./metadata-builder/MetadataBuilder"; |
| 8 | +import { RoutingControllersOptions } from "./RoutingControllersOptions"; |
9 | 9 | import {getFromContainer} from "./container"; |
10 | | -import {InterceptorInterface} from "./InterceptorInterface"; |
| 10 | +import {isPromiseLike} from "./util/isPromiseLike"; |
| 11 | +import {runInSequence} from "./util/runInSequence"; |
11 | 12 |
|
12 | 13 | /** |
13 | 14 | * Registers controllers and middlewares in the given server framework. |
@@ -37,9 +38,9 @@ export class RoutingControllers { |
37 | 38 | // Constructor |
38 | 39 | // ------------------------------------------------------------------------- |
39 | 40 |
|
40 | | - constructor(private driver: Driver) { |
| 41 | + constructor(private driver: Driver, private options: RoutingControllersOptions) { |
41 | 42 | this.parameterHandler = new ActionParameterHandler(driver); |
42 | | - this.metadataBuilder = new MetadataBuilder(); |
| 43 | + this.metadataBuilder = new MetadataBuilder(options); |
43 | 44 | } |
44 | 45 |
|
45 | 46 | // ------------------------------------------------------------------------- |
|
0 commit comments