PHP Class Airship\Engine\Continuum\Updaters\Airship

This is used to self-update the Airship
Inheritance: extends AutoUpdater, implements ContinuumInterface
Afficher le fichier Open project: paragonie/airship

Protected Properties

Свойство Type Description
$ext string
$name string
$pharAlias string

Méthodes publiques

Méthode Description
__construct ( Hail $hail, Supplier $sup ) Airship constructor.
autoUpdate ( ) Process automatic updates:

Méthodes protégées

Méthode Description
install ( UpdateInfo $info, UpdateFile $file ) Let's install the automatic update.
replaceFile ( string $filename ) : boolean Unique to Airship updating; replace a file with one in the archive

Method Details

__construct() public méthode

Airship constructor.
public __construct ( Hail $hail, Supplier $sup )
$hail Hail
$sup Supplier

autoUpdate() public méthode

1. Check if a new update is available. 2. Download the upload file, store in a temporary file. 3. Verify the signature (via Halite). 4. Verify the update is recorded in Keyggdrasil. 5. If all is well, run the update script.
public autoUpdate ( )

install() protected méthode

If we get to this point: 1. We know the signature is signed by Paragon Initiative Enterprises, LLC. 2. The hash was checked into Keyggdrasil, which was independently vouched for by our peers.
protected install ( UpdateInfo $info, UpdateFile $file )
$info UpdateInfo
$file UpdateFile

replaceFile() protected méthode

Unique to Airship updating; replace a file with one in the archive
protected replaceFile ( string $filename ) : boolean
$filename string
Résultat boolean

Property Details

$ext protected_oe property

protected string $ext
Résultat string

$name protected_oe property

protected string $name
Résultat string

$pharAlias protected_oe property

protected string $pharAlias
Résultat string