PHP Class Piwik\Plugins\CoreUpdater\Commands\Update

Inheritance: extends Piwik\Plugin\ConsoleCommand
Show file Open project: piwik/piwik

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Execute command like: ./console core:update --yes
executeClearCaches ( )
makeUpdate ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $doDryRun )
writeAlertMessageWhenCommandExecutedWithUnexpectedUser ( Symfony\Component\Console\Output\OutputInterface $output )

Private Methods

Method Description
askForUpdateConfirmation ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
doDryRun ( Updater $updater, Symfony\Component\Console\Output\OutputInterface $output )
doRealUpdate ( Updater $updater, $componentsWithUpdateFile, Symfony\Component\Console\Output\OutputInterface $output )
getCurrentVersionForCore ( Updater $updater )
getDimensionsToUpdate ( $componentsWithUpdateFile )
getMigrationQueriesToExecute ( Updater $updater )
getPluginsToUpdate ( $componentsWithUpdateFile )
getUpdateHelpMessage ( )
handleCoreError ( Symfony\Component\Console\Output\OutputInterface $output, $errors, $includeDiyHelp = false )
isUpdatingCore ( $componentsWithUpdateFile )
makeUpdaterInstance ( Symfony\Component\Console\Output\OutputInterface $output )
outputUpdaterErrors ( Symfony\Component\Console\Output\OutputInterface $output, $errors, $deactivatedPlugins )
outputUpdaterWarnings ( Symfony\Component\Console\Output\OutputInterface $output, $warnings )

Method Details

configure() protected method

protected configure ( )

execute() protected method

Execute command like: ./console core:update --yes
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

executeClearCaches() protected method

protected executeClearCaches ( )

makeUpdate() protected method

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

writeAlertMessageWhenCommandExecutedWithUnexpectedUser() protected method

protected writeAlertMessageWhenCommandExecutedWithUnexpectedUser ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface