PHP Class Laravel\SparkInstaller\Installation\UpdateComposerFile

Show file Open project: laravel/spark-installer

Protected Properties

Property Type Description
$command
$name

Public Methods

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

Protected Methods

Method Description
addCashierDependency ( array $composer ) : array Add the Cashier Composer dependency.
addRepository ( array $composer ) : array Add the Spark repository to the Composer array.
addSparkDependency ( array $composer ) : array Add the Spark Composer dependency.
getComposerConfiguration ( ) : array Read the Composer file from disk.
writeComposerFile ( array $composer ) : void Write the given Composer configuration back to disk.

Method Details

__construct() public method

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

addCashierDependency() protected method

Add the Cashier Composer dependency.
protected addCashierDependency ( array $composer ) : array
$composer array
return array

addRepository() protected method

Add the Spark repository to the Composer array.
protected addRepository ( array $composer ) : array
$composer array
return array

addSparkDependency() protected method

Add the Spark Composer dependency.
protected addSparkDependency ( array $composer ) : array
$composer array
return array

getComposerConfiguration() protected method

Read the Composer file from disk.
protected getComposerConfiguration ( ) : array
return array

install() public method

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

writeComposerFile() protected method

Write the given Composer configuration back to disk.
protected writeComposerFile ( array $composer ) : void
$composer array
return void

Property Details

$command protected property

protected $command

$name protected property

protected $name