From e4a0de5df47a496f883210589a03c484674df9a9 Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Wed, 9 May 2012 00:30:33 +0200 Subject: [PATCH] When using composer commands outside a Composer\Console\Application, one does not have an IOInterface object --- src/Composer/Command/Command.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Command/Command.php b/src/Composer/Command/Command.php index 043b5d645..dc3183ee3 100644 --- a/src/Composer/Command/Command.php +++ b/src/Composer/Command/Command.php @@ -67,6 +67,8 @@ abstract class Command extends BaseCommand if ($application instanceof ComposerApplication) { /* @var $application ComposerApplication */ $this->io = $application->getIO(); + } else { + $this->io = new \Composer\IO\NullIO(); } } return $this->io;