Back to SetConfigurationCommand 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)
{
    $language = Factory::getLanguage();
    $language->load('', JPATH_INSTALLATION, null, false, false) || $language->load('', JPATH_INSTALLATION, null, true);
    $language->load('com_config', JPATH_ADMINISTRATOR, null, false, false) || $language->load('com_config', JPATH_ADMINISTRATOR, null, true);
    $this->cliInput = $input;
    $this->ioStyle = new SymfonyStyle($input, $output);
}