Also allow to specify the cache file name
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
533e8351ad
commit
029e8cdc5b
|
@ -133,9 +133,11 @@ class AppFetcher extends Fetcher {
|
|||
|
||||
/**
|
||||
* @param string $version
|
||||
* @param string $filename
|
||||
*/
|
||||
public function setVersion($version) {
|
||||
public function setVersion(string $version, string $fileName = 'apps.json') {
|
||||
parent::setVersion($version);
|
||||
$this->fileName = $fileName;
|
||||
$this->setEndpoint();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ abstract class Fetcher {
|
|||
* Set the current Nextcloud version
|
||||
* @param string $version
|
||||
*/
|
||||
public function setVersion($version) {
|
||||
public function setVersion(string $version) {
|
||||
$this->version = $version;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue