Skip to content

Commit dcbe52a

Browse files
authored
[generator] Add DrupalStyle. (#332)
1 parent af8b3e4 commit dcbe52a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Generator/Generator.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Drupal\Console\Core\Utils\FileQueue;
1212
use Drupal\Console\Core\Utils\CountCodeLines;
1313
use Drupal\Console\Core\Utils\DrupalFinder;
14+
use Drupal\Console\Core\Style\DrupalStyle;
1415

1516
/**
1617
* Class Generator
@@ -39,6 +40,11 @@ abstract class Generator
3940
*/
4041
protected $drupalFinder;
4142

43+
/**
44+
* @var DrupalStyle
45+
*/
46+
protected $io;
47+
4248
/**
4349
* @param $renderer
4450
*/
@@ -71,6 +77,20 @@ public function setDrupalFinder($drupalFinder)
7177
$this->drupalFinder = $drupalFinder;
7278
}
7379

80+
/**
81+
* @return \Drupal\Console\Core\Style\DrupalStyle
82+
*/
83+
public function getIo() {
84+
return $this->io;
85+
}
86+
87+
/**
88+
* @param \Drupal\Console\Core\Style\DrupalStyle $io
89+
*/
90+
public function setIo($io) {
91+
$this->io = $io;
92+
}
93+
7494
/**
7595
* @param string $template
7696
* @param string $target

0 commit comments

Comments
 (0)