1
0
Fork 0

When using composer commands outside a Composer\Console\Application, one does not have an IOInterface object

pull/665/head
Paul Seiffert 2012-05-09 00:30:33 +02:00
parent b3a5ca93c7
commit e4a0de5df4
1 changed files with 2 additions and 0 deletions

View File

@ -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;