Eva\EvaEngine\CLI\Output\ConsoleOutput::writelnComment PHP Method

writelnComment() public method

public writelnComment ( $message, $type = self::OUTPUT_NORMAL )
    public function writelnComment($message, $type = self::OUTPUT_NORMAL)
    {
        $this->writeln("<comment>{$message} </comment>", $type);
    }

Usage Example

Example #1
0
 public static function exceptionHandler(\Exception $e)
 {
     $output = new ConsoleOutput();
     $output->writelnError($e->getMessage());
     $output->writelnComment($e->getTraceAsString());
 }