Drush8IoWrapper.php in Lingotek Translation 3.2.x
Same filename and directory in other branches
- 8.2 src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 4.0.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.0.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.1.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.3.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.4.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.5.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.6.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.7.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
- 3.8.x src/Cli/Commands/Drush8/Drush8IoWrapper.php
Namespace
Drupal\lingotek\Cli\Commands\Drush8File
src/Cli/Commands/Drush8/Drush8IoWrapper.phpView source
<?php
namespace Drupal\lingotek\Cli\Commands\Drush8;
use Drush\Log\LogLevel;
/**
* 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.
*/
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);
}
}
Classes
Name | Description |
---|---|
Drush8IoWrapper | Class Drush8IoWrapper. Originally from ConfigSplitDrush8Io. |