X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FCommand%2FCommand.php;fp=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FCommand%2FCommand.php;h=509a68c4008c3798ac6b0f1b0976cf70a3ce3c8a;hp=7772f497883c9df992ca76e15b80b9b17723ddde;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drupal/console-core/src/Command/Command.php b/vendor/drupal/console-core/src/Command/Command.php index 7772f4978..509a68c40 100644 --- a/vendor/drupal/console-core/src/Command/Command.php +++ b/vendor/drupal/console-core/src/Command/Command.php @@ -12,6 +12,7 @@ use Symfony\Component\Console\Input\InputInterface; 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 @@ -22,6 +23,11 @@ abstract class Command extends BaseCommand { use CommandTrait; + /** + * @var DrupalFinder; + */ + protected $drupalFinder; + /** * @var DrupalStyle */ @@ -42,4 +48,16 @@ abstract class Command extends BaseCommand { 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; + } }