trait MiddlewareAware (View source)

Properties

protected Middleware[] $middlewares

Methods

public
getMiddlewares()

No description

public
$this
setMiddlewares(Middleware[] $middlewares)

No description

public
$this
addMiddleware(Middleware $middleware)

No description

protected
array
callMiddleware(string $class, int|bool $excludeMiddleware, callable $last)

Call middleware to get decorated class config

Details

Middleware[] getMiddlewares()

No description

Return Value

Middleware[]

$this setMiddlewares(Middleware[] $middlewares)

No description

Parameters

Middleware[] $middlewares

Return Value

$this

$this addMiddleware(Middleware $middleware)

No description

Parameters

Middleware $middleware

Return Value

$this

protected array callMiddleware(string $class, int|bool $excludeMiddleware, callable $last)

Call middleware to get decorated class config

Parameters

string $class

Class name to pass

int|bool $excludeMiddleware
callable $last

Last config to call

Return Value

array

Class config with middleware applied