class SelfUpdateCommand extends BaseCommand (View source)

Constants

HOMEPAGE

OLD_INSTALL_EXT

Methods

getComposer(bool $required = true, bool|null $disablePlugins = null)

No description

setComposer(Composer $composer)

No description

resetComposer()

Removes the cached composer instance

bool
isProxyCommand()

Whether or not this command is meant to call another command.

getIO()

No description

setIO(IOInterface $io)

No description

initialize(InputInterface $input, OutputInterface $output)

{@inheritDoc}

bool[]
getPreferredInstallOptions(Config $config, InputInterface $input, bool $keepVcsRequiresPreferSource = false)

Returns preferSource and preferDist values based on the configuration.

configure()

No description

execute(InputInterface $input, OutputInterface $output)

No description

fetchKeys(IOInterface $io, Config $config)

No description

rollback(OutputInterface $output, $rollbackDir, $localFilename)

No description

setLocalPhar(string $localFilename, string $newFilename, string $backupTarget = null)

No description

cleanBackups($rollbackDir, $except = null)

No description

getLastBackupVersion($rollbackDir)

No description

getOldInstallationFinder($rollbackDir)

No description

Details

Composer getComposer(bool $required = true, bool|null $disablePlugins = null)

Parameters

bool $required
bool|null $disablePlugins

Return Value

Composer

Exceptions

RuntimeException

setComposer(Composer $composer)

Parameters

Composer $composer

resetComposer()

Removes the cached composer instance

bool isProxyCommand()

Whether or not this command is meant to call another command.

This is mainly needed to avoid duplicated warnings messages.

Return Value

bool

IOInterface getIO()

Return Value

IOInterface

setIO(IOInterface $io)

Parameters

IOInterface $io

protected initialize(InputInterface $input, OutputInterface $output)

{@inheritDoc}

Parameters

InputInterface $input
OutputInterface $output

protected bool[] getPreferredInstallOptions(Config $config, InputInterface $input, bool $keepVcsRequiresPreferSource = false)

Returns preferSource and preferDist values based on the configuration.

Parameters

Config $config
InputInterface $input
bool $keepVcsRequiresPreferSource

Return Value

bool[] An array composed of the preferSource and preferDist values

protected configure()

protected execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected fetchKeys(IOInterface $io, Config $config)

Parameters

IOInterface $io
Config $config

protected rollback(OutputInterface $output, $rollbackDir, $localFilename)

Parameters

OutputInterface $output
$rollbackDir
$localFilename

protected UnexpectedValueException|PharException|null setLocalPhar(string $localFilename, string $newFilename, string $backupTarget = null)

Parameters

string $localFilename
string $newFilename
string $backupTarget

Return Value

UnexpectedValueException|PharException|null

Exceptions

Exception

protected cleanBackups($rollbackDir, $except = null)

Parameters

$rollbackDir
$except

protected getLastBackupVersion($rollbackDir)

Parameters

$rollbackDir

protected getOldInstallationFinder($rollbackDir)

Parameters

$rollbackDir