PHP Class Laravel\SparkInstaller\Installation\DownloadSpark

Inheritance: use trait Laravel\SparkInstaller\InteractsWithSparkAPI, use trait Laravel\SparkInstaller\InteractsWithSparkConfiguration
Show file Open project: laravel/spark-installer

Protected Properties

Property Type Description
$command

Public Methods

Method Description
__construct ( NewCommand $command ) : void Create a new installation helper instance.
install ( ) : void Run the installation helper.

Protected Methods

Method Description
downloadZip ( ) : void Download the latest Spark release.
extractZip ( string $zipPath ) : void Extract the Spark Zip archive.
invalidLicense ( $release ) : void Inform the user that their registered Spark token is invalid.
sparkPath ( ) : string Get the release directory.
zipResponse ( ) : string Get the raw Zip response for a Spark download.

Method Details

__construct() public method

Create a new installation helper instance.
public __construct ( NewCommand $command ) : void
$command Laravel\SparkInstaller\NewCommand
return void

downloadZip() protected method

Download the latest Spark release.
protected downloadZip ( ) : void
return void

extractZip() protected method

Extract the Spark Zip archive.
protected extractZip ( string $zipPath ) : void
$zipPath string
return void

install() public method

Run the installation helper.
public install ( ) : void
return void

invalidLicense() protected method

Inform the user that their registered Spark token is invalid.
protected invalidLicense ( $release ) : void
return void

sparkPath() protected method

Get the release directory.
protected sparkPath ( ) : string
return string

zipResponse() protected method

Get the raw Zip response for a Spark download.
protected zipResponse ( ) : string
return string

Property Details

$command protected property

protected $command