use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
+use Drupal\Console\Core\Utils\DrupalFinder;
/**
* Class Command
{
use CommandTrait;
+ /**
+ * @var DrupalFinder;
+ */
+ protected $drupalFinder;
+
/**
* @var DrupalStyle
*/
{
return $this->io;
}
+
+ public function createException($message) {
+ $this->getIo()->error($message);
+ exit(1);
+ }
+
+ /**
+ * @param \Drupal\Console\Core\Utils\DrupalFinder $drupalFinder
+ */
+ public function setDrupalFinder($drupalFinder) {
+ $this->drupalFinder = $drupalFinder;
+ }
}