PHP Class Platformsh\Cli\SelfUpdate\SelfUpdater

Show file Open project: commerceguys/platform-cli Class Usage Examples

Protected Properties

Property Type Description
$allowMajor
$allowUnstable
$config
$input
$output
$questionHelper
$stdErr
$timeout

Public Methods

Method Description
__construct ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null, CliConfig $cliConfig = null, QuestionHelper $questionHelper = null ) Updater constructor.
setAllowMajor ( boolean $allowMajor = true ) Set the updater to allow major version updates.
setAllowUnstable ( boolean $allowUnstable = true ) Set the updater to allow unstable versions.
setTimeout ( integer $timeout ) Set the timeout for the version check.
update ( string | null $manifestUrl = null, string | null $currentVersion = null ) : false | string Run the update.

Method Details

__construct() public method

Updater constructor.
public __construct ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null, CliConfig $cliConfig = null, QuestionHelper $questionHelper = null )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$cliConfig Platformsh\Cli\CliConfig
$questionHelper Platformsh\Cli\Helper\QuestionHelper

setAllowMajor() public method

Set the updater to allow major version updates.
public setAllowMajor ( boolean $allowMajor = true )
$allowMajor boolean

setAllowUnstable() public method

Set the updater to allow unstable versions.
public setAllowUnstable ( boolean $allowUnstable = true )
$allowUnstable boolean

setTimeout() public method

Set the timeout for the version check.
public setTimeout ( integer $timeout )
$timeout integer The timeout in seconds.

update() public method

Run the update.
public update ( string | null $manifestUrl = null, string | null $currentVersion = null ) : false | string
$manifestUrl string | null
$currentVersion string | null
return false | string The new version number, or false if there was no update.

Property Details

$allowMajor protected property

protected $allowMajor

$allowUnstable protected property

protected $allowUnstable

$config protected property

protected $config

$input protected property

protected $input

$output protected property

protected $output

$questionHelper protected property

protected $questionHelper

$stdErr protected property

protected $stdErr

$timeout protected property

protected $timeout