Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public constructor(private appContainer: Container, private appConfig: AppConfig) {
this.logFactory = new LogFactory(appConfig)
this.logger = this.logFactory.getLogger(Server)
// ensure decorator registry has the right log level (now that we know the app config)
DecoratorRegistry.setLogger(this.logFactory)
this.api = createAPI(appConfig)
this._middlewareRegistry = new MiddlewareRegistry(this.logFactory)
if (this.appConfig.openApi && this.appConfig.openApi.enabled) {
this.openApiGenerator = new OpenApiGenerator(this.appConfig, this._middlewareRegistry, this.logFactory)
}
}