Symfony\Component\Console\Application::find
Finds a command by name or alias.
Contrary to get, this command tries to find the best match if you give it an abbreviation of a name or alias.
Signature
public function find(string
$name )
Parameters
$name
— string- A command name or a command alias
Returns
- Command
- A Command instance
Errors/Exceptions
-
InvalidArgumentException
- When command name is incorrect or ambiguous