PHP Class Laravel\Installer\Console\NewCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Afficher le fichier Open project: laravel/installer

Méthodes protégées

Méthode Description
cleanUp ( string $zipFile ) Clean-up the Zip file.
configure ( ) : void Configure the command options.
download ( string $zipFile, string $version = 'master' ) Download the temporary Zip to the given file.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void Execute the command.
extract ( string $zipFile, string $directory ) Extract the Zip file into the given directory.
findComposer ( ) : string Get the composer command for the environment.
getVersion ( Symfony\Component\Console\Input\InputInterface $input ) : string Get the version that should be downloaded.
makeFilename ( ) : string Generate a random temporary filename.
verifyApplicationDoesntExist ( string $directory ) : void Verify that the application does not already exist.

Method Details

cleanUp() protected méthode

Clean-up the Zip file.
protected cleanUp ( string $zipFile )
$zipFile string

configure() protected méthode

Configure the command options.
protected configure ( ) : void
Résultat void

download() protected méthode

Download the temporary Zip to the given file.
protected download ( string $zipFile, string $version = 'master' )
$zipFile string
$version string

execute() protected méthode

Execute the command.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat void

extract() protected méthode

Extract the Zip file into the given directory.
protected extract ( string $zipFile, string $directory )
$zipFile string
$directory string

findComposer() protected méthode

Get the composer command for the environment.
protected findComposer ( ) : string
Résultat string

getVersion() protected méthode

Get the version that should be downloaded.
protected getVersion ( Symfony\Component\Console\Input\InputInterface $input ) : string
$input Symfony\Component\Console\Input\InputInterface
Résultat string

makeFilename() protected méthode

Generate a random temporary filename.
protected makeFilename ( ) : string
Résultat string

verifyApplicationDoesntExist() protected méthode

Verify that the application does not already exist.
protected verifyApplicationDoesntExist ( string $directory ) : void
$directory string
Résultat void