コード例 #1
0
ファイル: Class.php プロジェクト: CobaltBlueDW/oddsandends
 /**
  * The magic wakeup method will be called by PHP's runtime environment when
  * a serialized instance of this class was unserialized. This implementation
  * of the wakeup method will register this object in the the global class
  * context.
  *
  * @return void
  * @since 0.10.0
  */
 public function __wakeup()
 {
     parent::__wakeup();
     $this->context->registerClass($this);
 }
コード例 #2
0
ファイル: Interface.php プロジェクト: kingsj/core
 /**
  * The magic wakeup method will be called by PHP's runtime environment when
  * a serialized instance of this class was unserialized. This implementation
  * of the wakeup method will register this object in the the global class
  * context.
  *
  * @return void
  * @since 0.10.0
  */
 public function __wakeup()
 {
     parent::__wakeup();
     $this->context->registerInterface($this);
 }