DeltaMiddleware
class DeltaMiddleware implements Middleware (View source)
Applies a set of user-customised modifications to config
Traits
Abstract flag-aware middleware
Properties
protected | int | $disableFlag | Disable flag |
from MiddlewareCommon |
protected | DeltaConfigCollection | $collection | Source for deltas |
Methods
public
$this
setDisableFlag(int $disableFlag)
Set flag to use to disable this middleware
from
MiddlewareCommon
protected
bool
enabled(int|true $excludeMiddleware)
Check if this middlware is enabled
from
MiddlewareCommon
public
public
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
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
__construct(DeltaConfigCollection $collection, int $disableFlag = 0)
DeltaMiddleware constructor.
DeltaConfigCollection
getCollection()
No description
$this
setCollection(DeltaConfigCollection $collection)
No description
array
getClassConfig(string $class, int|true $excludeMiddleware, callable $next)
Get config for a class
protected array
applyDelta(array $config, array $delta)
Apply a single delta to a class config