@@ -134,6 +134,9 @@ |
||
| 134 | 134 | $this->commandProcessor()->hookManager()->add($commandName, $hook, $callback); |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | + /** |
|
| 138 | + * @param integer $n |
|
| 139 | + */ |
|
| 137 | 140 | protected function getNthWord($string, $n, $default, $delimiter = ' ') |
| 138 | 141 | { |
| 139 | 142 | $words = explode($delimiter, $string); |
@@ -1,10 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Consolidation\AnnotatedCommand; |
| 3 | 3 | |
| 4 | -use Symfony\Component\Console\Command\Command; |
|
| 5 | -use Symfony\Component\Console\Input\InputInterface; |
|
| 6 | -use Symfony\Component\Console\Output\OutputInterface; |
|
| 7 | - |
|
| 8 | 4 | class AnnotatedCommandFactory |
| 9 | 5 | { |
| 10 | 6 | protected $commandProcessor; |