프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$bypassSecurityAndJustInstall | boolean | ||
$continuumLogger | |||
$ext | |||
$hail | Hail | ||
$localInstallFile | InstallFile | ||
$package | string | ||
$supplier | |||
$type | string |
메소드 | 설명 | |
---|---|---|
__construct ( Hail $hail = null, string $supplier = '', string $package = '' ) | Installer constructor. | |
bypassSecurityAndJustInstall ( boolean $set = false ) : self | This is for manual installations and update scripts. It should never be invoked automatically. | |
clearCache ( ) : boolean | We just need to clear the template caches and the cabin data. | |
download ( array $update = [] ) : InstallFile | Download the file from the update server. | |
easyInstall ( ) : boolean | Attempts to download and install in one go. | |
expandCabinName ( string $cabinName ) : string | Is this a special Airship cabin? Return just the name. | |
getLogContext ( InstallFile $installFile ) : array | Get information for logging purposes | |
getPackageData ( string $minVersion = '' ) : array | Get metadata about the package we're installing. | |
install ( InstallFile $fileInfo ) : boolean | Install the file. This is type-specific, so we leave it abstract here. | |
markPackageInstalled ( InstallFile $install ) : boolean | Somewhat self-explanatory. This just sets the 'installed' column in the database to 'TRUE' so our web UI knows that it's installed. | |
useLocalInstallFile ( string $path, string $version = '' ) : self | For CLI usage: Bypass the download process, use a local file instead. | |
verifyChecksum ( InstallFile $file ) : boolean | Verify that the file has not modified since it was stored | |
verifyMerkleRoot ( InstallFile $file ) : boolean | Verifies that the Merkle root exists, matches this package and version, and has the same checksum as the one we calculated. | |
verifySignature ( InstallFile $file ) : boolean | Verify that the signature matches |
메소드 | 설명 | |
---|---|---|
getChannel ( string $name ) : |
Get the channels (cache across all instances of Installer) |
public __construct ( Hail $hail = null, string $supplier = '', string $package = '' ) | ||
$hail | Hail | |
$supplier | string | |
$package | string |
public bypassSecurityAndJustInstall ( boolean $set = false ) : self | ||
$set | boolean | |
리턴 | self |
public clearCache ( ) : boolean | ||
리턴 | boolean |
public easyInstall ( ) : boolean | ||
리턴 | boolean | Was it successful? |
public expandCabinName ( string $cabinName ) : string | ||
$cabinName | string | |
리턴 | string |
protected getChannel ( string $name ) : |
||
$name | string | |
리턴 |
public getLogContext ( InstallFile $installFile ) : array | ||
$installFile | InstallFile | |
리턴 | array |
public getPackageData ( string $minVersion = '' ) : array | ||
$minVersion | string | |
리턴 | array |
public markPackageInstalled ( InstallFile $install ) : boolean | ||
$install | InstallFile | |
리턴 | boolean |
public useLocalInstallFile ( string $path, string $version = '' ) : self | ||
$path | string | |
$version | string | |
리턴 | self |
public static verifyChecksum ( InstallFile $file ) : boolean | ||
$file | InstallFile | |
리턴 | boolean |
public verifyMerkleRoot ( InstallFile $file ) : boolean | ||
$file | InstallFile | |
리턴 | boolean |
public static verifySignature ( InstallFile $file ) : boolean | ||
$file | InstallFile | |
리턴 | boolean |
protected static Log,Airship\Engine\Continuum $continuumLogger | ||
리턴 |