function BaseCommand::getIO
Return value
50 calls to BaseCommand::getIO()
- ArchiveCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ ArchiveCommand.php - Executes the current command.
- AuditCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ AuditCommand.php - Executes the current command.
- BaseCommand::initialize in vendor/
composer/ composer/ src/ Composer/ Command/ BaseCommand.php - @inheritDoc
- BaseDependencyCommand::doExecute in vendor/
composer/ composer/ src/ Composer/ Command/ BaseDependencyCommand.php - Execute the command.
- BaseDependencyCommand::writeTreeLine in vendor/
composer/ composer/ src/ Composer/ Command/ BaseDependencyCommand.php
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ BaseCommand.php, line 168
Class
- BaseCommand
- Base class for Composer commands
Namespace
Composer\CommandCode
public function getIO() {
if (null === $this->io) {
$application = parent::getApplication();
if ($application instanceof Application) {
$this->io = $application->getIO();
}
else {
$this->io = new NullIO();
}
}
return $this->io;
}