瀏覽代碼

Add getIO proxy to base Command class

Jordi Boggiano 13 年之前
父節點
當前提交
d291d65faf
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/Composer/Command/Command.php

+ 8 - 0
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();
+    }
 }