Trait \Prado\Util\Behaviors\TNoUnserializeBehaviorTrait
TNoUnserializeBehaviorTrait class.
When this trait is used by an IBehavior, upon the owner being unserialized (via magic method __wakeup and dyWakeUp) this trait removes itself from its owner.
This trait is used to deprecate serialized objects' IBehavior. By re-serializing the object can be saved without the deprecated behavior.
Trait hierarchy
Author: Brad Anderson <belisoful@icloud.com>Since: 4.3.0
public
|
dyWakeUp(TCallChain $chain) : mixed
This is raised when an owner is completed its unserialize() method call to
__wakeup. This method removes it behavior from the owner.
|
|