You are here

class Drush8IoWrapper in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  2. 4.0.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  3. 3.0.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  4. 3.1.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  5. 3.2.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  6. 3.3.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  7. 3.5.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  8. 3.6.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  9. 3.7.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper
  10. 3.8.x src/Cli/Commands/Drush8/Drush8IoWrapper.php \Drupal\lingotek\Cli\Commands\Drush8\Drush8IoWrapper

Class Drush8IoWrapper. Originally from ConfigSplitDrush8Io.

This is a stand in for \Symfony\Component\Console\Style\StyleInterface with drush 8 so that we don't need to depend on symfony components.

Hierarchy

Expanded class hierarchy of Drush8IoWrapper

1 file declares its use of Drush8IoWrapper
lingotek.drush.inc in ./lingotek.drush.inc
Drush 8 integration for Lingotek.

File

src/Cli/Commands/Drush8/Drush8IoWrapper.php, line 14

Namespace

Drupal\lingotek\Cli\Commands\Drush8
View source
class Drush8IoWrapper {
  public function writeln($text) {
    $this
      ->success($text);
  }
  public function confirm($text) {
    return drush_confirm($text);
  }
  public function success($text) {
    drush_log($text, LogLevel::SUCCESS);
  }
  public function error($message, array $context = []) {
    drush_log($message, LogLevel::ERROR);
  }
  public function text($text) {
    drush_log($text, LogLevel::NOTICE);
  }

}

Members