PHP Class Laravel\SparkInstaller\Installation\UpdateComposerFile

Afficher le fichier Open project: laravel/spark-installer

Protected Properties

Свойство Type Description
$command
$name

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

addCashierDependency() protected méthode

Add the Cashier Composer dependency.
protected addCashierDependency ( array $composer ) : array
$composer array
Résultat array

addRepository() protected méthode

Add the Spark repository to the Composer array.
protected addRepository ( array $composer ) : array
$composer array
Résultat array

addSparkDependency() protected méthode

Add the Spark Composer dependency.
protected addSparkDependency ( array $composer ) : array
$composer array
Résultat array

getComposerConfiguration() protected méthode

Read the Composer file from disk.
protected getComposerConfiguration ( ) : array
Résultat array

install() public méthode

Run the installation helper.
public install ( ) : void
Résultat void

writeComposerFile() protected méthode

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

Property Details

$command protected_oe property

protected $command

$name protected_oe property

protected $name