From 38c472d79fe484cfe68c8c7029f993b2577079b6 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sun, 14 Jun 2020 23:19:53 +0100 Subject: Add fromArray input helper --- src/Application.php | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.3