PHP Class Airship\Engine\Continuum\Installers\Gadget

This allows a new Gadget to be installed
Inheritance: extends BaseInstaller
Show file Open project: paragonie/airship

Protected Properties

Property Type Description
$ext string
$type string

Public Methods

Method Description
addToCabin ( string $cabin ) : boolean Update this cabin's gadgets.json file.
install ( InstallFile $fileInfo ) : boolean Gadget install process.

Protected Methods

Method Description
getMetadata ( InstallFile $fileInfo ) : array Get the metadata stored in the PHP archive.

Method Details

addToCabin() public method

Update this cabin's gadgets.json file.
public addToCabin ( string $cabin ) : boolean
$cabin string
return boolean

getMetadata() protected method

Get the metadata stored in the PHP archive.
protected getMetadata ( InstallFile $fileInfo ) : array
$fileInfo InstallFile
return array

install() public method

1. Move .phar to the appropriate location. 2. If this gadget is for a particular cabin, add it to that cabin's gadgets.json file. 3. Run the update triggers (install hooks and incremental upgrades). 4. Clear the cache files.
public install ( InstallFile $fileInfo ) : boolean
$fileInfo InstallFile
return boolean

Property Details

$ext protected property

protected string $ext
return string

$type protected property

protected string $type
return string