@@ -436,7 +436,7 @@ public function has($name)
436
436
public function getNamespaces ()
437
437
{
438
438
$ namespaces = array ();
439
- foreach ($ this ->commands as $ command ) {
439
+ foreach ($ this ->all () as $ command ) {
440
440
$ namespaces = array_merge ($ namespaces , $ this ->extractAllNamespaces ($ command ->getName ()));
441
441
442
442
foreach ($ command ->getAliases () as $ alias ) {
@@ -530,7 +530,7 @@ public function find($name)
530
530
531
531
// name
532
532
$ commands = array ();
533
- foreach ($ this ->commands as $ command ) {
533
+ foreach ($ this ->all () as $ command ) {
534
534
$ extractedNamespace = $ this ->extractNamespace ($ command ->getName ());
535
535
if ($ extractedNamespace === $ namespace
536
536
|| !empty ($ namespace ) && 0 === strpos ($ extractedNamespace , $ namespace )
@@ -556,7 +556,7 @@ public function find($name)
556
556
557
557
// aliases
558
558
$ aliases = array ();
559
- foreach ($ this ->commands as $ command ) {
559
+ foreach ($ this ->all () as $ command ) {
560
560
foreach ($ command ->getAliases () as $ alias ) {
561
561
$ extractedNamespace = $ this ->extractNamespace ($ alias );
562
562
if ($ extractedNamespace === $ namespace
@@ -1028,7 +1028,7 @@ private function findAlternativeCommands($name, $abbrevs)
1028
1028
return $ item ->getName ();
1029
1029
};
1030
1030
1031
- return $ this ->findAlternatives ($ name , $ this ->commands , $ abbrevs , $ callback );
1031
+ return $ this ->findAlternatives ($ name , $ this ->all () , $ abbrevs , $ callback );
1032
1032
}
1033
1033
1034
1034
/**
0 commit comments