summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);