PHP Class Laravel\Installer\Console\NewCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Mostra file Open project: laravel/installer

Protected Methods

Method 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 method

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

configure() protected method

Configure the command options.
protected configure ( ) : void
return void

download() protected method

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

execute() protected method

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
return void

extract() protected method

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

findComposer() protected method

Get the composer command for the environment.
protected findComposer ( ) : string
return string

getVersion() protected method

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

makeFilename() protected method

Generate a random temporary filename.
protected makeFilename ( ) : string
return string

verifyApplicationDoesntExist() protected method

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