@@ -53,6 +53,8 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Handle the result output and status code calculation. |
| 56 | + * @param StatusDeterminerHookDispatcher $statusCodeDispatcher |
|
| 57 | + * @param ExtracterHookDispatcher $extractDispatcher |
|
| 56 | 58 | */ |
| 57 | 59 | public function handle(OutputInterface $output, $result, CommandData $commandData, $statusCodeDispatcher = null, $extractDispatcher = null) |
| 58 | 60 | { |
@@ -167,7 +169,7 @@ discard block |
||
| 167 | 169 | * @param int $status |
| 168 | 170 | * @param string $structuredOutput |
| 169 | 171 | * @param mixed $originalResult |
| 170 | - * @return type |
|
| 172 | + * @return integer |
|
| 171 | 173 | */ |
| 172 | 174 | protected function writeErrorMessage($output, $status, $structuredOutput, $originalResult) |
| 173 | 175 | { |
@@ -1,23 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Consolidation\AnnotatedCommand; |
| 3 | 3 | |
| 4 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\ReplaceCommandHookDispatcher; |
|
| 5 | -use Symfony\Component\Console\Input\InputInterface; |
|
| 6 | 4 | use Symfony\Component\Console\Output\OutputInterface; |
| 7 | 5 | use Symfony\Component\Console\Output\ConsoleOutputInterface; |
| 8 | - |
|
| 9 | 6 | use Consolidation\OutputFormatters\FormatterManager; |
| 10 | 7 | use Consolidation\OutputFormatters\Options\FormatterOptions; |
| 11 | -use Consolidation\AnnotatedCommand\Hooks\HookManager; |
|
| 12 | -use Consolidation\AnnotatedCommand\Options\PrepareFormatter; |
|
| 13 | - |
|
| 14 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher; |
|
| 15 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\OptionsHookDispatcher; |
|
| 16 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\InteractHookDispatcher; |
|
| 17 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\ValidateHookDispatcher; |
|
| 18 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\ProcessResultHookDispatcher; |
|
| 19 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\StatusDeterminerHookDispatcher; |
|
| 20 | -use Consolidation\AnnotatedCommand\Hooks\Dispatchers\ExtracterHookDispatcher; |
|
| 21 | 8 | |
| 22 | 9 | /** |
| 23 | 10 | * Write the results of a command. Inject your ResultWriter |