function Command::getDefinition
Gets the InputDefinition attached to this Command.
3 calls to Command::getDefinition()
- BaseCommand::complete in vendor/
composer/ composer/ src/ Composer/ Command/ BaseCommand.php - @inheritdoc
- Command::complete in vendor/
symfony/ console/ Command/ Command.php - Supplies suggestions when resolving possible completion options for input (e.g. option or argument).
- Command::run in vendor/
symfony/ console/ Command/ Command.php - Runs the command.
2 methods override Command::getDefinition()
- LazyCommand::getDefinition in vendor/
symfony/ console/ Command/ LazyCommand.php - Gets the InputDefinition attached to this Command.
- TraceableCommand::getDefinition in vendor/
symfony/ console/ Command/ TraceableCommand.php - Gets the InputDefinition attached to this Command.
File
-
vendor/
symfony/ console/ Command/ Command.php, line 383
Class
- Command
- Base class for all commands.
Namespace
Symfony\Component\Console\CommandCode
public function getDefinition() : InputDefinition {
return $this->fullDefinition ?? $this->getNativeDefinition();
}