Skip to content

Commit

Permalink
[console] Merge command class aliases. (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Nov 14, 2017
1 parent 974ac07 commit ff51784
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ private function registerCommands()
if (!is_array($commandAliases)) {
$commandAliases = [$commandAliases];
}
$commandAliases = array_merge(
$command->getAliases(),
$commandAliases
);
$command->setAliases($commandAliases);
}

Expand Down

0 comments on commit ff51784

Please sign in to comment.