You are here

protected function Command::interact in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Command/Command.php \Symfony\Component\Console\Command\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.

Parameters

InputInterface $input An InputInterface instance:

OutputInterface $output An OutputInterface instance:

1 call to Command::interact()
Command::run in vendor/symfony/console/Command/Command.php
Runs the command.
2 methods override Command::interact()
FooCommand::interact in vendor/symfony/console/Tests/Fixtures/FooCommand.php
Interacts with the user.
TestCommand::interact in vendor/symfony/console/Tests/Fixtures/TestCommand.php
Interacts with the user.

File

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

Class

Command
Base class for all commands.

Namespace

Symfony\Component\Console\Command

Code

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