CoreMiddleware
in package
Table of Contents
- $configs : null|array<string|int, mixed>
- $middlewares : null|array<string|int, mixed>
- __construct() : mixed
- filter() : array<string|int, mixed>
- Filter middlewares to include only the enabled.
- getAll() : array<string|int, mixed>
- defaultMiddlewareKeys() : array<string|int, string>
- Fetch enabled middleware keys.
Properties
$configs
protected
null|array<string|int, mixed>
$configs
$middlewares
protected
null|array<string|int, mixed>
$middlewares
Methods
__construct()
public
__construct(Container $container) : mixed
Parameters
- $container : Container
Return values
mixed —filter()
Filter middlewares to include only the enabled.
public
filter(array<string|int, mixed> $enabledKeys) : array<string|int, mixed>
Parameters
- $enabledKeys : array<string|int, mixed>
Return values
array<string|int, mixed> —getAll()
public
getAll([array<string|int, mixed>|null $enabledKeys = null ]) : array<string|int, mixed>
Parameters
- $enabledKeys : array<string|int, mixed>|null = null
Return values
array<string|int, mixed> —defaultMiddlewareKeys()
Fetch enabled middleware keys.
private
defaultMiddlewareKeys() : array<string|int, string>