HTTPMiddlewareAware
trait HTTPMiddlewareAware (View source)
Adds middleware support to an object.
Provides a Middlewares property and a callMiddleware() callback
Properties
protected | HTTPMiddleware[] | $middlewares |
Methods
Details
HTTPMiddleware[]
getMiddlewares()
No description
$this
setMiddlewares(HTTPMiddleware[] $middlewares)
No description
$this
addMiddleware(HTTPMiddleware $middleware)
No description
protected HTTPResponse
callMiddleware(HTTPRequest $request, callable $last)
Call middleware