DrushOutputAdapter.php

Definition of Drush\Command\DrushOutputAdapter.

Namespace

Drush\Command

Classes

Namesort descending Description
DrushOutputAdapter Adapter for Symfony Console OutputInterface

File

lib/Drush/Command/DrushOutputAdapter.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Definition of Drush\Command\DrushOutputAdapter.
  5. */
  6. namespace Drush\Command;
  7. use Symfony\Component\Console\Output\Output;
  8. /**
  9. * Adapter for Symfony Console OutputInterface
  10. *
  11. * This class can serve as a stand-in wherever an OutputInterface
  12. * is needed. It calls through to drush_print().
  13. * This object should not be used directly; it exists only in
  14. * the Drush 8.x branch.
  15. */
  16. class DrushOutputAdapter extends Output {
  17. protected function doWrite($message, $newline)
  18. {
  19. drush_print($message, 0, null, $newline);
  20. }
  21. }