Composer\Satis\Console\Command\InitCommand::prompt PHP Метод

prompt() защищенный Метод

Prompt for an input option.
protected prompt ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $prompt, string $optionName, callable $validator )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$prompt string
$optionName string For the default value and where the answer is set
$validator callable
    protected function prompt(InputInterface $input, OutputInterface $output, $prompt, $optionName, $validator)
    {
        /** @var QuestionHelper $helper */
        $helper = $this->getHelper('question');
        $question = $this->getQuestion($prompt, $input->getOption($optionName));
        $question->setValidator($validator);
        $input->setOption($optionName, $helper->ask($input, $output, $question));
    }