From d291d65faf7bbc7bd0cb5c50388c15cd11cba4c0 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 18 Mar 2012 21:01:59 +0100 Subject: [PATCH] Add getIO proxy to base Command class --- src/Composer/Command/Command.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Composer/Command/Command.php b/src/Composer/Command/Command.php index 8744a0da1..98298d139 100644 --- a/src/Composer/Command/Command.php +++ b/src/Composer/Command/Command.php @@ -29,4 +29,12 @@ abstract class Command extends BaseCommand { return $this->getApplication()->getComposer($required); } + + /** + * @return \Composer\IO\ConsoleIO + */ + protected function getIO() + { + return $this->getApplication()->getIO(); + } }