Puli\Repository\Resource\GenericResource::postUnserialize PHP Method

postUnserialize() protected method

Override this method if you want to unserialize custom data in subclasses.
protected postUnserialize ( array $data )
$data array The unserialized data. Pop your custom data from the end of the array before calling the parent method.
    protected function postUnserialize(array $data)
    {
        $this->repoPath = array_pop($data);
        $this->path = array_pop($data);
    }

Usage Example

 protected function postUnserialize(array $data)
 {
     $this->filesystemPath = array_pop($data);
     parent::postUnserialize($data);
 }
All Usage Examples Of Puli\Repository\Resource\GenericResource::postUnserialize