class ExtensionMiddleware implements Middleware (View source)

Traits

Abstract flag-aware middleware

Properties

protected int $disableFlag

Disable flag

from  MiddlewareCommon

Methods

public
$this
setDisableFlag(int $disableFlag)

Set flag to use to disable this middleware

public
int
getDisableFlag()

Get flag to use to disable this middleware

protected
bool
enabled(int|true $excludeMiddleware)

Check if this middlware is enabled

public
array
__serialize()

No description

public
void
__unserialize(array $data)

No description

public
__construct($disableFlag = 0)

No description

public
array
getClassConfig(string $class, int|true $excludeMiddleware, callable $next)

Get config for a class

protected
getExtraConfig(string $class, array $classConfig, int $excludeMiddleware)

Applied config to a class from its extensions

Details

$this setDisableFlag(int $disableFlag)

Set flag to use to disable this middleware

Parameters

int $disableFlag

Return Value

$this

int getDisableFlag()

Get flag to use to disable this middleware

Return Value

int

protected bool enabled(int|true $excludeMiddleware)

Check if this middlware is enabled

Parameters

int|true $excludeMiddleware

Return Value

bool

array __serialize()

No description

Return Value

array

void __unserialize(array $data)

No description

Parameters

array $data

Return Value

void

__construct($disableFlag = 0)

No description

Parameters

$disableFlag

array getClassConfig(string $class, int|true $excludeMiddleware, callable $next)

Get config for a class

Parameters

string $class

Name of class

int|true $excludeMiddleware

Middleware disable flags

callable $next

Callback to next middleware

Return Value

array

Complete class config

protected Generator getExtraConfig(string $class, array $classConfig, int $excludeMiddleware)

Applied config to a class from its extensions

Parameters

string $class
array $classConfig
int $excludeMiddleware

Return Value

Generator