Skip to content
Snippets Groups Projects
Unverified Commit 2f89f5fd authored by Georg Ehrke's avatar Georg Ehrke
Browse files

AppFetcher: Distinguish between fileName and endpointName

parent 31c74e87
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,7 @@ class AppFetcher extends Fetcher { ...@@ -68,6 +68,7 @@ class AppFetcher extends Fetcher {
); );
$this->fileName = 'apps.json'; $this->fileName = 'apps.json';
$this->endpointName = 'apps.json';
$this->compareVersion = $compareVersion; $this->compareVersion = $compareVersion;
$this->ignoreMaxVersion = true; $this->ignoreMaxVersion = true;
} }
......
...@@ -53,5 +53,6 @@ class CategoryFetcher extends Fetcher { ...@@ -53,5 +53,6 @@ class CategoryFetcher extends Fetcher {
$logger $logger
); );
$this->fileName = 'categories.json'; $this->fileName = 'categories.json';
$this->endpointName = 'categories.json';
} }
} }
...@@ -55,6 +55,8 @@ abstract class Fetcher { ...@@ -55,6 +55,8 @@ abstract class Fetcher {
/** @var string */ /** @var string */
protected $fileName; protected $fileName;
/** @var string */ /** @var string */
protected $endpointName;
/** @var string */
protected $version; protected $version;
/** @var string */ /** @var string */
protected $channel; protected $channel;
...@@ -219,6 +221,6 @@ abstract class Fetcher { ...@@ -219,6 +221,6 @@ abstract class Fetcher {
} }
protected function getEndpoint(): string { protected function getEndpoint(): string {
return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1') . '/' . $this->fileName; return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1') . '/' . $this->endpointName;
} }
} }
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment