You are here

public function Application::setDefaultCommand in Zircon Profile 8

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

Sets the default Command name.

Parameters

string $commandName The Command name:

1 call to Application::setDefaultCommand()
CustomDefaultCommandApplication::__construct in vendor/symfony/console/Tests/ApplicationTest.php
Overwrites the constructor in order to set a different default command.

File

vendor/symfony/console/Application.php, line 1062

Class

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

Namespace

Symfony\Component\Console

Code

public function setDefaultCommand($commandName) {
  $this->defaultCommand = $commandName;
}