You are here

public function Application::has in Zircon Profile 8.0

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

Returns true if the command exists, false otherwise.

Parameters

string $name The command name or alias:

Return value

bool true if the command exists, false otherwise

File

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

Class

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

Namespace

Symfony\Component\Console

Code

public function has($name) {
  return isset($this->commands[$name]);
}