Skip to content

Commit

Permalink
Fix console: list 'namespace' command display all available commands
Browse files Browse the repository at this point in the history
  • Loading branch information
SongoQ authored and fabpot committed Sep 26, 2011
1 parent decfe9e commit ed02aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ public function all($namespace = null)

$commands = array();
foreach ($this->commands as $name => $command) {
if ($namespace === $this->extractNamespace($name)) {
if ($namespace === $this->extractNamespace($name, substr_count($namespace, ':') + 1)) {
$commands[$name] = $command;
}
}
Expand Down

0 comments on commit ed02aa9

Please sign in to comment.