Webmozart\Console\Api\Application\Application::hasCommand PHP Method

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);