| 1 | <?php |
||
| 20 | class OutputCallback |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * The output. |
||
| 24 | * |
||
| 25 | * @var OutputInterface |
||
| 26 | */ |
||
| 27 | protected $output; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The logger. |
||
| 31 | * |
||
| 32 | * @var LoggerInterface |
||
| 33 | */ |
||
| 34 | protected $logger; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Create output callback object. |
||
| 38 | * |
||
| 39 | * @param OutputInterface $output |
||
| 40 | * @param LoggerInterface $logger |
||
| 41 | */ |
||
| 42 | public function __construct(OutputInterface $output, LoggerInterface $logger) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Gets called when the object is used as a callback. |
||
| 50 | * |
||
| 51 | * @param string $type |
||
| 52 | * @param string $buffer |
||
| 53 | */ |
||
| 54 | public function __invoke($type, $buffer) |
||
| 72 | } |
||
| 73 |