When using composer commands outside a Composer\Console\Application, one does not have an IOInterface object
parent
b3a5ca93c7
commit
e4a0de5df4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue