MiddlewareCommon
trait MiddlewareCommon (View source)
Abstract flag-aware middleware
Properties
protected | int | $disableFlag | Disable flag |
Methods
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
Details
$this
setDisableFlag(int $disableFlag)
Set flag to use to disable this middleware
int
getDisableFlag()
Get flag to use to disable this middleware
protected bool
enabled(int|true $excludeMiddleware)
Check if this middlware is enabled
array
__serialize()
No description
void
__unserialize(array $data)
No description
string
serialize()
deprecated
deprecated
The __serialize() magic method will be automatically used instead of this
unserialize(string $serialized)
deprecated
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