Skip to content

Commit

Permalink
[Console] fixed regression when calling a command foo:bar if there is…
Browse files Browse the repository at this point in the history
… another one like foo:bar:baz (closes #8245)
  • Loading branch information
fabpot committed Jun 11, 2013
1 parent 84867b7 commit 0c0a3e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,10 @@ public function find($name)
return $this->get($abbrevs[$searchName][0]);
}

if (isset($abbrevs[$searchName]) && in_array($searchName, $abbrevs[$searchName])) {
return $this->get($searchName);
}

if (isset($abbrevs[$searchName]) && count($abbrevs[$searchName]) > 1) {
$suggestions = $this->getAbbreviationSuggestions($abbrevs[$searchName]);

Expand Down

0 comments on commit 0c0a3e9

Please sign in to comment.