Skip to content

Commit

Permalink
[generator] Add DrupalStyle. (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Mar 21, 2018
1 parent af8b3e4 commit dcbe52a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Generator/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Drupal\Console\Core\Utils\FileQueue;
use Drupal\Console\Core\Utils\CountCodeLines;
use Drupal\Console\Core\Utils\DrupalFinder;
use Drupal\Console\Core\Style\DrupalStyle;

/**
* Class Generator
Expand Down Expand Up @@ -39,6 +40,11 @@ abstract class Generator
*/
protected $drupalFinder;

/**
* @var DrupalStyle
*/
protected $io;

/**
* @param $renderer
*/
Expand Down Expand Up @@ -71,6 +77,20 @@ public function setDrupalFinder($drupalFinder)
$this->drupalFinder = $drupalFinder;
}

/**
* @return \Drupal\Console\Core\Style\DrupalStyle
*/
public function getIo() {
return $this->io;
}

/**
* @param \Drupal\Console\Core\Style\DrupalStyle $io
*/
public function setIo($io) {
$this->io = $io;
}

/**
* @param string $template
* @param string $target
Expand Down

0 comments on commit dcbe52a

Please sign in to comment.