Here's, I'd do a check on `$this->output` and use `fwrite` if it's not set, for example:

```php
if ($this->output instanceof  CliOutput)
{
    $this->output->out($text, $nl);
}
else
{
    fwrite(STDOUT, $text . ($nl ? "\n" : null));
}

What do you think?