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

Breadcrumb

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

function Command::interact

Interacts with the user.

This method is executed before the InputDefinition is validated. This means that this is the only place where the command can interactively ask for values of missing required arguments.

Return value

void

1 call to Command::interact()
Command::run in vendor/symfony/console/Command/Command.php
Runs the command.
5 methods override Command::interact()
ExecCommand::interact in vendor/composer/composer/src/Composer/Command/ExecCommand.php
Interacts with the user.
InitCommand::interact in vendor/composer/composer/src/Composer/Command/InitCommand.php
@inheritDoc
RequireCommand::interact in vendor/composer/composer/src/Composer/Command/RequireCommand.php
Interacts with the user.
RunScriptCommand::interact in vendor/composer/composer/src/Composer/Command/RunScriptCommand.php
Interacts with the user.
TraceableCommand::interact in vendor/symfony/console/Command/TraceableCommand.php
Interacts with the user.

File

vendor/symfony/console/Command/Command.php, line 197

Class

Command
Base class for all commands.

Namespace

Symfony\Component\Console\Command

Code

protected function interact(InputInterface $input, OutputInterface $output) {
}

API Navigation

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