PHP Class Symfony\Installer\SelfUpdateCommand

Inheritance: extends DownloadCommand
Afficher le fichier Open project: symfony/symfony-installer

Méthodes publiques

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

Méthodes protégées

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

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

protected configure ( )

execute() protected méthode

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

getRemoteFileUrl() protected méthode

protected getRemoteFileUrl ( )

initialize() protected méthode

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

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