File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 12
12
use Symfony \Component \Console \Output \OutputInterface ;
13
13
use Drupal \Console \Core \Command \Shared \CommandTrait ;
14
14
use Drupal \Console \Core \Style \DrupalStyle ;
15
+ use Drupal \Console \Core \Utils \DrupalFinder ;
15
16
16
17
/**
17
18
* Class Command
@@ -22,6 +23,11 @@ abstract class Command extends BaseCommand
22
23
{
23
24
use CommandTrait;
24
25
26
+ /**
27
+ * @var DrupalFinder;
28
+ */
29
+ protected $ drupalFinder ;
30
+
25
31
/**
26
32
* @var DrupalStyle
27
33
*/
@@ -42,4 +48,16 @@ public function getIo()
42
48
{
43
49
return $ this ->io ;
44
50
}
51
+
52
+ public function createException ($ message ) {
53
+ $ this ->getIo ()->error ($ message );
54
+ exit (1 );
55
+ }
56
+
57
+ /**
58
+ * @param \Drupal\Console\Core\Utils\DrupalFinder $drupalFinder
59
+ */
60
+ public function setDrupalFinder ($ drupalFinder ) {
61
+ $ this ->drupalFinder = $ drupalFinder ;
62
+ }
45
63
}
You can’t perform that action at this time.
0 commit comments