PHP Class Webmozart\Console\Util\SimilarCommandName

Since: 1.0
Author: Bernhard Schussek ([email protected])
Mostrar archivo Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
find ( string $commandName, CommandCollection $commands ) : string[] Searches a command collection for similar names.

Private Methods

Method Description
__construct ( )
filterDuplicates ( array $names, CommandCollection $commands )

Method Details

find() public static method

Searches a command collection for similar names.
public static find ( string $commandName, CommandCollection $commands ) : string[]
$commandName string The command name that was not found.
$commands Webmozart\Console\Api\Command\CommandCollection The available commands.
return string[] The names of similar commands.