コード例 #1
0
ファイル: Fetcher.php プロジェクト: JBarnden/updater
 /**
  * Produce complete feed URL
  * @return string
  */
 protected function getFeedUrl()
 {
     $currentVersion = $this->configReader->getByPath('system.version');
     $version = explode('.', $currentVersion);
     $version['installed'] = $this->configReader->getByPath('apps.core.installedat');
     $version['updated'] = $this->configReader->getByPath('apps.core.lastupdatedat');
     $version['updatechannel'] = $this->getUpdateChannel();
     $version['edition'] = $this->configReader->getEdition();
     $version['build'] = $this->locator->getBuild();
     $url = self::DEFAULT_BASE_URL . '?version=' . implode('x', $version);
     return $url;
 }
コード例 #2
0
ファイル: Fetcher.php プロジェクト: drognisep/Portfolio-Site
 /**
  * Produce complete feed URL
  * @return string
  */
 protected function getFeedUrl()
 {
     $currentVersion = $this->configReader->getByPath('system.version');
     $version = explode('.', $currentVersion);
     $version['installed'] = $this->configReader->getByPath('apps.core.installedat');
     $version['updated'] = $this->configReader->getByPath('apps.core.lastupdatedat');
     $version['updatechannel'] = $this->getUpdateChannel();
     $version['edition'] = $this->configReader->getEdition();
     $version['build'] = $this->locator->getBuild();
     // Read updater server URL from config
     $updaterServerUrl = $this->configReader->get(['system', 'updater.server.url']);
     if ((bool) $updaterServerUrl === false) {
         $updaterServerUrl = self::DEFAULT_BASE_URL;
     }
     $url = $updaterServerUrl . '?version=' . implode('x', $version);
     return $url;
 }