resolveMiddlewareForGroup static method

Iterable<Middleware> resolveMiddlewareForGroup(
  1. String group
)

Implementation

static Iterable<Middleware> resolveMiddlewareForGroup(String group) {
  final middlewareGroup = ApplicationFactory._middlewareGroups[group];
  if (middlewareGroup == null) {
    throw ArgumentError('Middleware group `$group` does not exist');
  }
  return middlewareGroup.map(_buildHandlerFunc);
}