class MiddlewareNameResolver (View source)

Methods

static Closure|string|array
resolve(Closure|string $name, array $map, array $middlewareGroups)

Resolve the middleware name to a class name(s) preserving passed parameters.

static array
parseMiddlewareGroup(string $name, array $map, array $middlewareGroups)

Parse the middleware group and format it for usage.

Details

static Closure|string|array resolve(Closure|string $name, array $map, array $middlewareGroups)

Resolve the middleware name to a class name(s) preserving passed parameters.

Parameters

Closure|string $name
array $map
array $middlewareGroups

Return Value

Closure|string|array

static protected array parseMiddlewareGroup(string $name, array $map, array $middlewareGroups)

Parse the middleware group and format it for usage.

Parameters

string $name
array $map
array $middlewareGroups

Return Value

array