Skip to content

Commit

Permalink
Update Drush8Io.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinHoutevelts authored Apr 17, 2018
1 parent 549ae33 commit 023aa0f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/Service/Drush8Io.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Drupal\wmmodel\Service;

use Psr\Log\LogLevel;

/**
* Class Drush8Io.
*
Expand All @@ -10,19 +12,23 @@
*/
class Drush8Io
{
public function confirm($text) {
public function confirm($text)
{
return drush_confirm($text);
}

public function success($text) {
drush_log($text, LogLevel::SUCCESS);
public function success($text)
{
drush_log($text, LogLevel::INFO);
}

public function error($text) {
public function error($text)
{
drush_log($text, LogLevel::ERROR);
}

public function text($text) {
public function text($text)
{
drush_log($text, LogLevel::NOTICE);
}
}

0 comments on commit 023aa0f

Please sign in to comment.