PHP Класс Airship\Engine\Continuum\Updaters\Motif

This updates a Motif.
Наследование: extends AutoUpdater, implements ContinuumInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cabin array
$ext string

Открытые методы

Метод Описание
__construct ( Hail $hail, array $manifest = [], Supplier $supplier = null, string $filePath = '' ) Motif constructor.
autoUpdate ( ) Process automatic updates:
setCabin ( string $supplier, string $name ) : self Store cabin association

Защищенные методы

Метод Описание
install ( UpdateInfo $info, UpdateFile $file ) Install the new version

Описание методов

__construct() публичный метод

Motif constructor.
public __construct ( Hail $hail, array $manifest = [], Supplier $supplier = null, string $filePath = '' )
$hail Hail
$manifest array
$supplier Supplier
$filePath string

autoUpdate() публичный метод

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() защищенный метод

If we get to this point: 1. We know the signature is signed by the supplier. 2. The hash was checked into Keyggdrasil, which was independently vouched for by our peers.
protected install ( UpdateInfo $info, UpdateFile $file )
$info UpdateInfo (part of definition but not used here)
$file UpdateFile

setCabin() публичный метод

Store cabin association
public setCabin ( string $supplier, string $name ) : self
$supplier string
$name string
Результат self

Описание свойств

$cabin защищенное свойство

protected array $cabin
Результат array

$ext защищенное свойство

protected string $ext
Результат string