public function update()
 {
     Meta::loadPackage('diff');
     $updater = new Updater();
     $repositoryVersion = $updater->getRemoteVersion();
     $hasNewVersion = $updater->hasNewVersion();
     $issueUrl = $updater->newIssueUrl();
     $this->setContent('system.update', compact('repositoryVersion', 'hasNewVersion', 'issueUrl'));
 }
 /**
  * @param Updater $updater
  */
 public function __construct(Updater $updater)
 {
     $this->version = $updater->getRemoteVersion();
     $this->newVersion = $updater->hasNewVersion();
 }