Свойство | Type | Description | |
---|---|---|---|
$bypassSecurityAndJustInstall | boolean | ||
$channels | |||
$continuumLogger | |||
$ext | string | ||
$filePath | string | ||
$hail | Hail | ||
$localUpdateFile | UpdateFile | ||
$manifest | array | ||
$name | string | ||
$pharAlias | string | ||
$supplier | |||
$type | string |
Méthode | Description | |
---|---|---|
bypassSecurityAndJustInstall ( boolean $set = false ) : self | This is for manual installations and update scripts. It should never be invoked automatically. | |
checkKeyggdrasil ( UpdateInfo $info, UpdateFile $file ) : boolean | Was the checksum of this update stored in Keyggdrasil? | |
downloadUpdateFile ( UpdateInfo $update, string $apiEndpoint = 'download' ) : UpdateFile | Download an update into a temp file | |
manualUpdate ( string $desiredVersion ) : boolean | Process manual updates: | |
updateCheck ( string $supplier = '', string $packageName = '', string $minVersion = '', string $apiEndpoint = 'version' ) : array | Are any updates available? | |
updateDBRecord ( string $type, UpdateInfo $info ) : boolean | Update the version string in airship_package_cache | |
useLocalUpdateFile ( string $path, string $version = '' ) : self | For CLI usage: Bypass the download process, use a local file instead. | |
verifyUpdateSignature ( UpdateInfo $info, UpdateFile $file ) : boolean | Verify the Ed25519 signature of the update file against the supplier's public key. |
Méthode | Description | |
---|---|---|
autoRunScript ( array $autoRun ) : mixed | Automatic script execution | |
bringSiteBackUp ( ) | After we finish our update, we should bring the site back online: | |
bringSiteDown ( ) | Let's bring the site down while we're upgrading: | |
checkVersionSettings ( UpdateInfo $info, string $currentVersion ) : boolean | Should this automatic update be permitted? | |
getChannel ( string $name ) : |
Get the channels | |
getLogContext ( UpdateInfo $updateInfo, UpdateFile $updateFile ) : array | Get information for logging purposes | |
install ( UpdateInfo $info, UpdateFile $file ) | This is the method that actually does the installation | |
sortUpdatesByVersion ( variadic |
Sort updates by version (newest to latest) |
protected autoRunScript ( array $autoRun ) : mixed | ||
$autoRun | array | |
Résultat | mixed |
protected bringSiteBackUp ( ) |
protected bringSiteDown ( ) |
public bypassSecurityAndJustInstall ( boolean $set = false ) : self | ||
$set | boolean | |
Résultat | self |
public checkKeyggdrasil ( UpdateInfo $info, UpdateFile $file ) : boolean | ||
$info | UpdateInfo | |
$file | UpdateFile | |
Résultat | boolean |
protected checkVersionSettings ( UpdateInfo $info, string $currentVersion ) : boolean | ||
$info | UpdateInfo | |
$currentVersion | string | |
Résultat | boolean |
public downloadUpdateFile ( UpdateInfo $update, string $apiEndpoint = 'download' ) : UpdateFile | ||
$update | UpdateInfo | |
$apiEndpoint | string | |
Résultat | UpdateFile |
protected getChannel ( string $name ) : |
||
$name | string | |
Résultat |
protected getLogContext ( UpdateInfo $updateInfo, UpdateFile $updateFile ) : array | ||
$updateInfo | UpdateInfo | |
$updateFile | UpdateFile | |
Résultat | array |
abstract protected install ( UpdateInfo $info, UpdateFile $file ) | ||
$info | UpdateInfo | |
$file | UpdateFile |
public manualUpdate ( string $desiredVersion ) : boolean | ||
$desiredVersion | string | |
Résultat | boolean |
protected sortUpdatesByVersion ( variadic |
||
$updates | variadic |
|
Résultat | array |
public updateDBRecord ( string $type, UpdateInfo $info ) : boolean | ||
$type | string | |
$info | UpdateInfo | |
Résultat | boolean |
public useLocalUpdateFile ( string $path, string $version = '' ) : self | ||
$path | string | |
$version | string | |
Résultat | self |
public verifyUpdateSignature ( UpdateInfo $info, UpdateFile $file ) : boolean | ||
$info | UpdateInfo | |
$file | UpdateFile | |
Résultat | boolean |
protected bool $bypassSecurityAndJustInstall | ||
Résultat | boolean |
protected static Channel[],Airship\Engine\Continuum $channels | ||
Résultat |
protected static Log,Airship\Engine\Continuum $continuumLogger | ||
Résultat |
protected Supplier,Airship\Engine\Continuum $supplier | ||
Résultat |