function Application::getCommandName
Gets the name of the command based on input.
2 calls to Application::getCommandName()
- Application::doRun in vendor/
composer/ composer/ src/ Composer/ Console/ Application.php - Runs the current application.
- Application::doRun in vendor/
symfony/ console/ Application.php - Runs the current application.
2 methods override Application::getCommandName()
- DbDumpApplication::getCommandName in core/
lib/ Drupal/ Core/ Command/ DbDumpApplication.php - Gets the name of the command based on input.
- GenerateProxyClassApplication::getCommandName in core/
lib/ Drupal/ Core/ Command/ GenerateProxyClassApplication.php - Gets the name of the command based on input.
File
-
vendor/
symfony/ console/ Application.php, line 1121
Class
- Application
- An Application is the container for a collection of commands.
Namespace
Symfony\Component\ConsoleCode
protected function getCommandName(InputInterface $input) : ?string {
return $this->singleCommand ? $this->defaultCommand : $input->getFirstArgument();
}