UpdateController
extends BaseController
in package
Tags
Table of Contents
- DEVICE_CODE_COOKIE = 'JinyaDeviceCode'
- $body : array<string, mixed>
- entityNotFound() : ResponseInterface
- formatIteratorPlain() : array<string|int, array<string, mixed>>
- getVersionInfo() : ResponseInterface
- jsonIterator() : ResponseInterface
- jsonIteratorPlain() : ResponseInterface
- updateJinya() : ResponseInterface
- getReleasePath() : string
- Gets the path of the given release version
- getReleases() : array<string, string>
- Gets all currently available releases from the configured update server
Constants
DEVICE_CODE_COOKIE
public
mixed
DEVICE_CODE_COOKIE
= 'JinyaDeviceCode'
Tags
Properties
$body
public
array<string, mixed>
$body
Methods
entityNotFound()
public
entityNotFound(string $message) : ResponseInterface
Parameters
- $message : string
Tags
Return values
ResponseInterface —formatIteratorPlain()
public
formatIteratorPlain(Iterator<string|int, T> $iterator) : array<string|int, array<string, mixed>>
Parameters
- $iterator : Iterator<string|int, T>
Tags
Return values
array<string|int, array<string, mixed>> —getVersionInfo()
public
getVersionInfo() : ResponseInterface
Tags
Return values
ResponseInterface —jsonIterator()
public
jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —jsonIteratorPlain()
public
jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —updateJinya()
public
updateJinya() : ResponseInterface
Tags
Return values
ResponseInterface —getReleasePath()
Gets the path of the given release version
protected
getReleasePath(string $version) : string
Parameters
- $version : string
Tags
Return values
string —getReleases()
Gets all currently available releases from the configured update server
protected
getReleases() : array<string, string>