summaryrefslogtreecommitdiffstats
path: root/src/Provision.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Provision.php')
-rw-r--r--src/Provision.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Provision.php b/src/Provision.php
index 6948249..4519aef 100644
--- a/src/Provision.php
+++ b/src/Provision.php
@@ -79,16 +79,18 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
$this
->setConfig($config)
- ->setInput($input)
- ->setOutput($output)
;
-
+
// Create Application.
$application = new Application(self::APPLICATION_NAME, self::VERSION);
$application
->setProvision($this)
- ->setLogger($logger);
-
+ ->setLogger($logger)
+ ;
+ $application->configureIO($input, $output);
+ $this->setInput($input);
+ $this->setOutput($output);
+
// Create and configure container.
$container = Robo::createDefaultContainer($input, $output, $application, $config);
$this->setContainer($container);
@@ -108,7 +110,7 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
public function run(InputInterface $input, OutputInterface $output) {
$status_code = $this->runner->run($input, $output);
-
+
return $status_code;
}