summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2020-06-14 23:19:53 +0100
committerFbenas <philbeansburton@gmail.com>2020-06-14 23:19:53 +0100
commit38c472d79fe484cfe68c8c7029f993b2577079b6 (patch)
tree86f3f608acc6acaf51f22fc9d0bc8be6b1db3716 /src
parenta14e444a42121cf42859a78103592a25f4c7ba47 (diff)
Add fromArray input helperHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/Application.php5
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);