Pārlūkot izejas kodu

Improve global command to support short command resolution

Jordi Boggiano 11 gadi atpakaļ
vecāks
revīzija
c2dc433fa4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/Composer/Command/GlobalCommand.php

+ 1 - 1
src/Composer/Command/GlobalCommand.php

@@ -74,6 +74,6 @@ EOT
         // create new input without "global" command prefix
         $input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));
 
-        return $this->getApplication()->get($args[1])->run($input, $output);
+        return $this->getApplication()->run($input, $output);
     }
 }