Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BaseCommand.php

function BaseCommand::getIO

Return value

IOInterface

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

... See full list

File

vendor/composer/composer/src/Composer/Command/BaseCommand.php, line 168

Class

BaseCommand
Base class for Composer commands

Namespace

Composer\Command

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal