trait HTTPMiddlewareAware (View source)

Adds middleware support to an object.

Provides a Middlewares property and a callMiddleware() callback

Methods

getMiddlewares()

No description

$this
setMiddlewares(HTTPMiddleware[] $middlewares)

No description

$this
addMiddleware(HTTPMiddleware $middleware)

No description

Details

HTTPMiddleware[] getMiddlewares()

Return Value

HTTPMiddleware[]

$this setMiddlewares(HTTPMiddleware[] $middlewares)

Parameters

HTTPMiddleware[] $middlewares

Return Value

$this

$this addMiddleware(HTTPMiddleware $middleware)

Parameters

HTTPMiddleware $middleware

Return Value

$this