NullOutput.php 725 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Symfony\Component\Console\Output;
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. /**
  12. * NullOutput suppresses all output.
  13. *
  14. * $output = new NullOutput();
  15. *
  16. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  17. */
  18. class NullOutput extends Output
  19. {
  20. /**
  21. * Writes a message to the output.
  22. *
  23. * @param string $message A message to write to the output
  24. * @param Boolean $newline Whether to add a newline or not
  25. */
  26. public function doWrite($message, $newline)
  27. {
  28. }
  29. }