You are here

protected function Application::getCommandName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Application.php \Symfony\Component\Console\Application::getCommandName()

Gets the name of the command based on input.

Parameters

InputInterface $input The input interface:

Return value

string The command name

1 call to Application::getCommandName()
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 875

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

protected function getCommandName(InputInterface $input) {
  return $input
    ->getFirstArgument();
}