\App\CoreModule\ModelsVersionManager

Tool for getting versions of IQRF Gateway Daemon and IQRF Gateway Daemon webapp

Summary

Methods
Properties
Constants
__construct()
availableWebappUpdate()
getInstalledWebapp()
getCurrentWebapp()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$cache
$client
$commandManager
$jsonFileManager
N/A

Properties

$cache

$cache : \Nette\Caching\Cache

Type

\Nette\Caching\Cache — Cache

$client

$client : \GuzzleHttp\ClientInterface

Type

\GuzzleHttp\ClientInterface — HTTP(S) client

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command manager

$jsonFileManager

$jsonFileManager : \App\CoreModule\Models\JsonFileManager

Type

normal — JSON file manager

Methods

__construct()

__construct(\App\CoreModule\Models\CommandManager  $commandManager, \Nette\Caching\IStorage  $storage, \GuzzleHttp\ClientInterface  $client) : mixed

Constructor

Parameters

\App\CoreModule\Models\CommandManager $commandManager

Command manager

\Nette\Caching\IStorage $storage

Cache storage

\GuzzleHttp\ClientInterface $client

HTTP(S) client

Returns

mixed

availableWebappUpdate()

availableWebappUpdate() : bool

Checks if an update is available for the webapp

Throws

\Nette\Utils\JsonException

Returns

bool —

Is available an update for the webapp?

getInstalledWebapp()

getInstalledWebapp(bool  $verbose = true) : string

Gets the installed version of the webapp

Parameters

bool $verbose

Is verbose mode enabled?

Throws

\Nette\Utils\JsonException

Returns

string —

Installed version of the webapp

getCurrentWebapp()

getCurrentWebapp() : string

Gets the current stable version of the webapp

Throws

\Nette\Utils\JsonException

Returns

string —

Current stable version of the webapp