public function __wakeup() { $this->closure =& resource_service::unregister($this->resource_id); }
public function __wakeup() { if ($closure = resource_service::unregister($this->resource_id)) { $this->closure =& $closure; } }