class MiddlewareDispatcher (View source)

Constants

private PIPE_EMPTY

Methods

pipe(string|callable $middleware, array $params = [])

Add a middleware to the runtime collection

mixed
process(Request $request, array ...$args)

Start the middleware running process

Details

MiddlewareDispatcher pipe(string|callable $middleware, array $params = [])

Add a middleware to the runtime collection

Parameters

string|callable $middleware
array $params

Return Value

MiddlewareDispatcher

mixed process(Request $request, array ...$args)

Start the middleware running process

Parameters

Request $request
array ...$args

Return Value

mixed