PHP Trait Laravel\SparkInstaller\InteractsWithSparkConfiguration

Show file Open project: laravel/spark-installer

Protected Methods

Method Description
configExists ( ) : boolean Determine if the Spark configuration file exists.
configPath ( ) : string Get the Spark configuration file path.
homePath ( ) : string Get the User's home path.
readToken ( ) : string Get the Spark API token from the configuration file.
storeToken ( string $token ) : void Write the Spark token to the configuration.

Method Details

configExists() protected method

Determine if the Spark configuration file exists.
protected configExists ( ) : boolean
return boolean

configPath() protected method

Get the Spark configuration file path.
protected configPath ( ) : string
return string

homePath() protected method

Get the User's home path.
protected homePath ( ) : string
return string

readToken() protected method

Get the Spark API token from the configuration file.
protected readToken ( ) : string
return string

storeToken() protected method

Write the Spark token to the configuration.
protected storeToken ( string $token ) : void
$token string
return void