PHP 클래스 Platformsh\Cli\SelfUpdate\SelfUpdater

파일 보기 프로젝트 열기: commerceguys/platform-cli 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$allowMajor
$allowUnstable
$config
$input
$output
$questionHelper
$stdErr
$timeout

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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

setAllowUnstable() 공개 메소드

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

setTimeout() 공개 메소드

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

update() 공개 메소드

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

프로퍼티 상세

$allowMajor 보호되어 있는 프로퍼티

protected $allowMajor

$allowUnstable 보호되어 있는 프로퍼티

protected $allowUnstable

$config 보호되어 있는 프로퍼티

protected $config

$input 보호되어 있는 프로퍼티

protected $input

$output 보호되어 있는 프로퍼티

protected $output

$questionHelper 보호되어 있는 프로퍼티

protected $questionHelper

$stdErr 보호되어 있는 프로퍼티

protected $stdErr

$timeout 보호되어 있는 프로퍼티

protected $timeout