MiddlewareRegistry
in package
Table of Contents
- $middlewares : array<string|int, mixed>|null
- __construct() : mixed
- getRegisteredMiddleware() : null|array<string|int, mixed>
- register() : void
- Register middleware by class name.
- setDefault() : void
Properties
$middlewares
protected
array<string|int, mixed>|null
$middlewares
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getRegisteredMiddleware()
public
getRegisteredMiddleware() : null|array<string|int, mixed>
Return values
null|array<string|int, mixed> —register()
Register middleware by class name.
public
register(callable|MiddlewareInterface $middleware, string $key) : void
Parameters
- $middleware : callable|MiddlewareInterface
- $key : string
Return values
void —setDefault()
protected
setDefault(CoreMiddleware $core) : void
Parameters
- $core : CoreMiddleware