You are here

Drush8Io.php in Entity Share 8

Same filename and directory in other branches
  1. 8.2 modules/entity_share_client/src/Drush8Io.php

File

modules/entity_share_client/src/Drush8Io.php
View source
<?php

namespace Drupal\entity_share_client;

use Drush\Log\LogLevel;

/**
 * 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.
 */

// @codingStandardsIgnoreStart
class Drush8Io {
  public function confirm($text) {
    return drush_confirm($text);
  }
  public function success($text) {
    drush_log($text, LogLevel::SUCCESS);
  }
  public function error($text) {
    drush_log($text, LogLevel::ERROR);
  }
  public function text($text) {
    drush_log($text, LogLevel::NOTICE);
  }

}

// @codingStandardsIgnoreEnd

Classes

Namesort descending Description
Drush8Io