Fix console: list 'namespace' command display all available commands

This commit is contained in:
Marcin Chylek 2011-09-26 01:05:02 +02:00 committed by Fabien Potencier
parent decfe9eb5c
commit ed02aa9974

View File

@ -581,7 +581,7 @@ class Application
$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;
}
}