ApplicationFactory constructor
ApplicationFactory(
- AppConfig appConfig
Implementation
ApplicationFactory(this.appConfig) {
providers.forEach(ensureIsSubTypeOf<ServiceProvider>);
middlewares.forEach(ensureIsSubTypeOf<ClassMiddleware>);
for (final types in middlewareGroups.values) {
types.map(ensureIsSubTypeOf<ClassMiddleware>);
}
_middlewareGroups = middlewareGroups;
}