Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Webmozart
Console
Api
Application
Application
hasCommand
Webmozart\Console\Api\Application\Application::hasCommand PHP Method
Application Interface Documentation
Show file
Open project: webmozart/console
hasCommand()
public
method
Returns whether the application has a command with a given name.
public
hasCommand
(
string
$name
) :
boolean
$name
string
The name of the command.
return
boolean
Returns `true` if the command with the given name exists and `false` otherwise.
public function hasCommand($name);
Application
getCommand
getCommands
getConfig
getDefaultCommands
getGlobalArgsFormat
getNamedCommands
hasCommand
hasCommands
hasDefaultCommands
hasNamedCommands
resolveCommand
run