You are here

class Drush8Io in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Cli/Drush8Io.php \Drupal\cms_content_sync\Cli\Drush8Io
  2. 2.0.x src/Cli/Drush8Io.php \Drupal\cms_content_sync\Cli\Drush8Io

Class Drush8Io.

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 Drush8Io

2 files declare their use of Drush8Io
cms_content_sync.drush.inc in ./cms_content_sync.drush.inc
Contains Drush commands for Content Sync.
cms_content_sync_developer.drush.inc in modules/cms_content_sync_developer/cms_content_sync_developer.drush.inc
Contains Drush commands for Content Sync.

File

src/Cli/Drush8Io.php, line 13

Namespace

Drupal\cms_content_sync\Cli
View source
class Drush8Io implements ICLIIO {

  /**
   * {@inheritdoc}
   */
  public function confirm($text, $default = true) {
    return drush_confirm($text);
  }

  /**
   * {@inheritdoc}
   */
  public function success($text) {
    drush_log($text, LogLevel::SUCCESS);
  }

  /**
   * {@inheritdoc}
   */
  public function warning($text) {
    drush_log($text, LogLevel::WARNING);
  }

  /**
   * {@inheritdoc}
   */
  public function error($text) {
    drush_log($text, LogLevel::ERROR);
  }

  /**
   * {@inheritdoc}
   */
  public function text($text) {
    drush_print($text);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Drush8Io::confirm public function Ask the user to confirm interactively. Overrides ICLIIO::confirm
Drush8Io::error public function Overrides ICLIIO::error
Drush8Io::success public function Overrides ICLIIO::success
Drush8Io::text public function Overrides ICLIIO::text
Drush8Io::warning public function Overrides ICLIIO::warning