diff --git a/src/Symfony/Component/Console/Output/EchoOutput.php b/src/Symfony/Component/Console/Output/EchoOutput.php new file mode 100644 index 0000000000000..9d96ada2ae849 --- /dev/null +++ b/src/Symfony/Component/Console/Output/EchoOutput.php @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Console\Output; + +/** + * EchoOutput writes the output using the common php echo command. + */ +class EchoOutput extends Output { + + /** + * {@inheritdoc} + */ + protected function doWrite($message, $newline) { + if ($newline) { + echo $message . PHP_EOL; + } else { + echo $message; + } + } +} +