/** * 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; }
/** * 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; }