|
@@ 54-58 (lines=5) @@
|
| 51 |
|
$output = new Output($outputStream, $formatter); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
if (null === $errorOutput) { |
| 55 |
|
$errorStream = new ErrorOutputStream(); |
| 56 |
|
$formatter = $errorStream->supportsAnsi() ? new AnsiFormatter() : new PlainFormatter(); |
| 57 |
|
$errorOutput = new Output($errorStream, $formatter); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
parent::__construct($input, $output, $errorOutput); |
| 61 |
|
} |
|
@@ 48-52 (lines=5) @@
|
| 45 |
|
$input = new Input($inputStream); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
if (null === $output) { |
| 49 |
|
$outputStream = new StandardOutputStream(); |
| 50 |
|
$formatter = $outputStream->supportsAnsi() ? new AnsiFormatter() : new PlainFormatter(); |
| 51 |
|
$output = new Output($outputStream, $formatter); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
if (null === $errorOutput) { |
| 55 |
|
$errorStream = new ErrorOutputStream(); |