diff options
author | Fbenas <philbeansburton@gmail.com> | 2020-06-14 23:19:53 +0100 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2020-06-14 23:19:53 +0100 |
commit | 38c472d79fe484cfe68c8c7029f993b2577079b6 (patch) | |
tree | 86f3f608acc6acaf51f22fc9d0bc8be6b1db3716 /src | |
parent | a14e444a42121cf42859a78103592a25f4c7ba47 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/Application.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Application.php b/src/Application.php index 05f5c0f..5c95188 100644 --- a/src/Application.php +++ b/src/Application.php @@ -41,6 +41,11 @@ abstract class Application return $this->setInput(new ArrayInput($this->readStdin())); } + public function fromArray(array $input) + { + return $this->setInput(new ArrayInput($input)); + } + public function toConsole() { return $this->setOutput(new ConsoleOutput); |