Symfony\Component\Console\Application::has
Returns true if the command exists, false otherwise.
Signature
public function has(string
$name )
Parameters
$name
— string- The command name or alias
Returns
- Boolean
- true if the command exists, false otherwise