Skip to content

Commit

Permalink
[console] Add getInput() method (#275)
Browse files Browse the repository at this point in the history
* user-command: Added new updates for user commands.

* [console] Fix code styles.
  • Loading branch information
miguel303 authored and jmolivas committed Jan 10, 2018
1 parent ee34bad commit 71ea05a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class Command extends BaseCommand
/**
* @var DrupalStyle
*/
protected $io;
private $io;

/**
* {@inheritdoc}
Expand Down
8 changes: 8 additions & 0 deletions src/Style/DrupalStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,12 @@ public function customLite($message, $prefix = '*', $style = '', $newLine = fals
parent::newLine();
}
}

/**
* @return InputInterface
*/
public function getInput()
{
return $this->input;
}
}

0 comments on commit 71ea05a

Please sign in to comment.