/** * * @return InputStream */ private function getInputStream() { $config = new CommandConfig(); $this->commandObject->doConfig($config); $commandArguments = []; foreach ($config->getArguments() as $argument) { $this->parseArgument($argument, $commandArguments); } return new InputStream($commandArguments); }