class InheritanceMiddleware implements Middleware (View source)

Traits

Abstract flag-aware middleware

Methods

$this
setDisableFlag(int $disableFlag)

Set flag to use to disable this middleware

int
getDisableFlag()

Get flag to use to disable this middleware

array
__serialize()

No description

void
__unserialize(array $data)

No description

string
serialize() deprecated

The __serialize() magic method will be automatically used instead of this

unserialize(string $serialized) deprecated

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

__construct($disableFlag = 0)

No description

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

Get config for a class

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

array __serialize()

Return Value

array

void __unserialize(array $data)

Parameters

array $data

Return Value

void

string serialize() deprecated

deprecated will be removed in 2.0

The __serialize() magic method will be automatically used instead of this

Return Value

string

unserialize(string $serialized) deprecated

deprecated will be removed in 2.0

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

Parameters

string $serialized

__construct($disableFlag = 0)

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