Browse Source

Add getIO proxy to base Command class

Jordi Boggiano 13 năm trước cách đây
mục cha
commit
d291d65faf
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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();
+    }
 }