Trait \Prado\Util\Behaviors\TNoUnserializeClassBehaviorTrait
TNoUnserializeClassBehaviorTrait class.
When this trait is used by an IClassBehavior, 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' IClassBehavior. 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(object $owner, TCallChain $chain) : mixed
This is raised when an owner is completed its unserialize() method call to
__wakeup. This method removes its behavior from the owner.
|
|