/** * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { if ($input->getOption('xml')) { $output->write($this->application->asXml($input->getArgument('namespace')), Output::OUTPUT_RAW); } else { $output->write($this->application->asText($input->getArgument('namespace'))); } }
/** * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { if (null === $this->command) { $this->command = $this->application->getCommand($input->getArgument('command_name')); } if ($input->getOption('xml')) { $output->write($this->command->asXml(), Output::OUTPUT_RAW); } else { $output->write($this->command->asText()); } }