From 71ea05a603a8a81dd468631d87e665bcc4c8040f Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 10 Jan 2018 17:31:15 -0600 Subject: [PATCH] [console] Add getInput() method (#275) * user-command: Added new updates for user commands. * [console] Fix code styles. --- src/Command/Command.php | 2 +- src/Style/DrupalStyle.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Command/Command.php b/src/Command/Command.php index 142ef49..7772f49 100644 --- a/src/Command/Command.php +++ b/src/Command/Command.php @@ -25,7 +25,7 @@ abstract class Command extends BaseCommand /** * @var DrupalStyle */ - protected $io; + private $io; /** * {@inheritdoc} diff --git a/src/Style/DrupalStyle.php b/src/Style/DrupalStyle.php index 0b26521..ce2cd8e 100644 --- a/src/Style/DrupalStyle.php +++ b/src/Style/DrupalStyle.php @@ -275,4 +275,12 @@ public function customLite($message, $prefix = '*', $style = '', $newLine = fals parent::newLine(); } } + + /** + * @return InputInterface + */ + public function getInput() + { + return $this->input; + } }