PHP Класс Platformsh\Cli\SelfUpdate\SelfUpdater

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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