PHP Class Symfony\Installer\SelfUpdateCommand

Inheritance: extends DownloadCommand
Show file Open project: symfony/symfony-installer

Public Methods

Method Description
isEnabled ( ) : boolean The self-update command is only available when using the installer via the PHAR file.

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getDownloadedApplicationType ( )
getRemoteFileUrl ( )
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Private Methods

Method Description
backupCurrentVersion ( ) Does a backup of the current version of the Symfony installer.
checkNewVersionIsValid ( ) Checks if the new version is valid.
cleanUp ( ) Removes the temporary used files.
downloadNewVersion ( ) Downloads the new version of the Symfony installer.
replaceCurrentVersionbyNewVersion ( ) Replaces the currenct version of the Symfony installer with the new one.
rollback ( ) Restores the previously installed version of the Symfony installer.

Method Details

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getDownloadedApplicationType() protected method

getRemoteFileUrl() protected method

protected getRemoteFileUrl ( )

initialize() protected method

protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

isEnabled() public method

The self-update command is only available when using the installer via the PHAR file.
public isEnabled ( ) : boolean
return boolean Whether the command is enabled