This class is a convenient wrapper around StreamOutput. $output = new ConsoleOutput(); This is equivalent to: $output = new StreamOutput(fopen('php://stdout', 'w'));
Author: Fabien Potencier (fabien@symfony.com)
Inheritance: extends Eva\EvaEngine\CLI\Output\StreamOutput, implements Eva\EvaEngine\CLI\Output\ConsoleOutputInterface
Exemplo n.º 1
0
 public static function exceptionHandler(\Exception $e)
 {
     $output = new ConsoleOutput();
     $output->writelnError($e->getMessage());
     $output->writelnComment($e->getTraceAsString());
 }