Platformsh\Cli\SelfUpdate\SelfUpdater::__construct PHP Method

__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
    public function __construct(InputInterface $input = null, OutputInterface $output = null, CliConfig $cliConfig = null, QuestionHelper $questionHelper = null)
    {
        $this->input = $input ?: new ArgvInput();
        $this->output = $output ?: new NullOutput();
        $this->stdErr = $this->output instanceof ConsoleOutputInterface ? $this->output->getErrorOutput() : $this->output;
        $this->config = $cliConfig ?: new CliConfig();
        $this->questionHelper = $questionHelper ?: new QuestionHelper($this->input, $this->output);
    }