public function load()
{
$data = $this->getStorage()->readPackage($this);
if ($data !== null) {
$this->_hash = $data['hash'];
$this->_releases = $data['releases'];
$this->_updateTime = $data['updateTime'];
}
}
/** * Reloads package on wake up to ensure it is up to date * * @void */ public function __wakeup() { $this->package->load(); $this->packageRepository = Yii::createObject(PackageRepository::class); }