PHP Class Platformsh\Cli\SelfUpdate\SelfUpdater

Afficher le fichier Open project: commerceguys/platform-cli Class Usage Examples

Protected Properties

Свойство Type Description
$allowMajor
$allowUnstable
$config
$input
$output
$questionHelper
$stdErr
$timeout

Méthodes publiques

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

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

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

setAllowUnstable() public méthode

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

setTimeout() public méthode

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

update() public méthode

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

Property Details

$allowMajor protected_oe property

protected $allowMajor

$allowUnstable protected_oe property

protected $allowUnstable

$config protected_oe property

protected $config

$input protected_oe property

protected $input

$output protected_oe property

protected $output

$questionHelper protected_oe property

protected $questionHelper

$stdErr protected_oe property

protected $stdErr

$timeout protected_oe property

protected $timeout