Back to UpdateCoreCommand class

Method configureIO

private void
configureIO
(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)
Configures the IO
Parameters
  • \Symfony\Component\Console\Input\InputInterface $input Console Input
  • \Symfony\Component\Console\Output\OutputInterface $output Console Output
Returns
  • void
Since
  • 4.0.0

Method configureIO - Source code

/**
 * Configures the IO
 *
 * @param   InputInterface   $input   Console Input
 * @param   OutputInterface  $output  Console Output
 *
 * @return void
 *
 * @since 4.0.0
 *
 */
private function configureIO(InputInterface $input, OutputInterface $output)
{
    ProgressBar::setFormatDefinition('custom', ' %current%/%max% -- %message%');
    $this->progressBar = new ProgressBar($output, 8);
    $this->progressBar->setFormat('custom');
    $this->cliInput = $input;
    $this->ioStyle = new SymfonyStyle($input, $output);
}