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

Breadcrumb

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

class NullIO

IOInterface that is not interactive and never writes the output

@author Christophe Coevoet <stof@notk.org>

Hierarchy

  • class \Composer\IO\BaseIO implements \Composer\IO\IOInterface
    • class \Composer\IO\NullIO extends \Composer\IO\BaseIO

Expanded class hierarchy of NullIO

7 files declare their use of NullIO
Application.php in vendor/composer/composer/src/Composer/Console/Application.php
AutoloadGenerator.php in vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php
BaseCommand.php in vendor/composer/composer/src/Composer/Command/BaseCommand.php
DiagnoseCommand.php in vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php
FileDownloader.php in vendor/composer/composer/src/Composer/Downloader/FileDownloader.php

... See full list

File

vendor/composer/composer/src/Composer/IO/NullIO.php, line 20

Namespace

Composer\IO
View source
class NullIO extends BaseIO {
    
    /**
     * @inheritDoc
     */
    public function isInteractive() : bool {
        return false;
    }
    
    /**
     * @inheritDoc
     */
    public function isVerbose() : bool {
        return false;
    }
    
    /**
     * @inheritDoc
     */
    public function isVeryVerbose() : bool {
        return false;
    }
    
    /**
     * @inheritDoc
     */
    public function isDebug() : bool {
        return false;
    }
    
    /**
     * @inheritDoc
     */
    public function isDecorated() : bool {
        return false;
    }
    
    /**
     * @inheritDoc
     */
    public function write($messages, bool $newline = true, int $verbosity = self::NORMAL) : void {
    }
    
    /**
     * @inheritDoc
     */
    public function writeError($messages, bool $newline = true, int $verbosity = self::NORMAL) : void {
    }
    
    /**
     * @inheritDoc
     */
    public function overwrite($messages, bool $newline = true, ?int $size = null, int $verbosity = self::NORMAL) : void {
    }
    
    /**
     * @inheritDoc
     */
    public function overwriteError($messages, bool $newline = true, ?int $size = null, int $verbosity = self::NORMAL) : void {
    }
    
    /**
     * @inheritDoc
     */
    public function ask($question, $default = null) {
        return $default;
    }
    
    /**
     * @inheritDoc
     */
    public function askConfirmation($question, $default = true) : bool {
        return $default;
    }
    
    /**
     * @inheritDoc
     */
    public function askAndValidate($question, $validator, $attempts = null, $default = null) {
        return $default;
    }
    
    /**
     * @inheritDoc
     */
    public function askAndHideAnswer($question) : ?string {
        return null;
    }
    
    /**
     * @inheritDoc
     */
    public function select($question, $choices, $default, $attempts = false, $errorMessage = 'Value "%s" is invalid', $multiselect = false) {
        return $default;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
BaseIO::$authentications protected property @var array&lt;string, array{username: string|null, password: string|null}&gt;
BaseIO::alert public function Overrides LoggerInterface::alert
BaseIO::checkAndSetAuthentication protected function Check for overwrite and set the authentication information for the repository.
BaseIO::critical public function Overrides LoggerInterface::critical
BaseIO::debug public function Overrides LoggerInterface::debug
BaseIO::emergency public function Overrides LoggerInterface::emergency
BaseIO::error public function Overrides LoggerInterface::error
BaseIO::getAuthentication public function @inheritDoc Overrides IOInterface::getAuthentication
BaseIO::getAuthentications public function @inheritDoc Overrides IOInterface::getAuthentications
BaseIO::hasAuthentication public function @inheritDoc Overrides IOInterface::hasAuthentication
BaseIO::info public function Overrides LoggerInterface::info
BaseIO::loadConfiguration public function @inheritDoc Overrides IOInterface::loadConfiguration
BaseIO::log public function Overrides LoggerInterface::log
BaseIO::notice public function Overrides LoggerInterface::notice
BaseIO::resetAuthentications public function
BaseIO::setAuthentication public function @inheritDoc Overrides IOInterface::setAuthentication
BaseIO::warning public function Overrides LoggerInterface::warning
BaseIO::writeErrorRaw public function @inheritDoc Overrides IOInterface::writeErrorRaw 1
BaseIO::writeRaw public function @inheritDoc Overrides IOInterface::writeRaw 1
IOInterface::DEBUG public constant
IOInterface::NORMAL public constant
IOInterface::QUIET public constant
IOInterface::VERBOSE public constant
IOInterface::VERY_VERBOSE public constant
NullIO::ask public function @inheritDoc Overrides IOInterface::ask
NullIO::askAndHideAnswer public function @inheritDoc Overrides IOInterface::askAndHideAnswer
NullIO::askAndValidate public function @inheritDoc Overrides IOInterface::askAndValidate
NullIO::askConfirmation public function @inheritDoc Overrides IOInterface::askConfirmation
NullIO::isDebug public function @inheritDoc Overrides IOInterface::isDebug
NullIO::isDecorated public function @inheritDoc Overrides IOInterface::isDecorated
NullIO::isInteractive public function @inheritDoc Overrides IOInterface::isInteractive
NullIO::isVerbose public function @inheritDoc Overrides IOInterface::isVerbose
NullIO::isVeryVerbose public function @inheritDoc Overrides IOInterface::isVeryVerbose
NullIO::overwrite public function @inheritDoc Overrides IOInterface::overwrite
NullIO::overwriteError public function @inheritDoc Overrides IOInterface::overwriteError
NullIO::select public function @inheritDoc Overrides IOInterface::select
NullIO::write public function @inheritDoc Overrides IOInterface::write
NullIO::writeError public function @inheritDoc Overrides IOInterface::writeError

API Navigation

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