function Application::has
Returns true if the command exists, false otherwise.
4 calls to Application::has()
- Application::all in vendor/
symfony/ console/ Application.php - Gets the commands (registered in the given namespace if provided).
- Application::doRun in vendor/
composer/ composer/ src/ Composer/ Console/ Application.php - Runs the current application.
- Application::find in vendor/
symfony/ console/ Application.php - Finds a command by name or alias.
- Application::get in vendor/
symfony/ console/ Application.php - Returns a registered command by name or alias.
File
-
vendor/
symfony/ console/ Application.php, line 604
Class
- Application
- An Application is the container for a collection of commands.
Namespace
Symfony\Component\ConsoleCode
public function has(string $name) : bool {
$this->init();
return isset($this->commands[$name]) || $this->commandLoader?->has($name) && $this->add($this->commandLoader
->get($name));
}