protected function error($string) { if ($this->output) { $this->output->writeln("<error>{$string}</error>"); } else { echo $string . "\r\n"; } }