outputBuffer as $o) { if (($o['code'] & self::OUTPUT) === 0) { continue; } if ($o['code'] & self::LOG) { $this->log($o['controller']->getThrowable(), json_encode([ 'class' => $o['class'], 'code' => $o['code'], 'file' => $o['file'], 'line' => $o['line'], 'message' => $o['message'] ])); } $o = $this->cleanOutputThrowable($o); if ($this->_print) { $this->print(json_encode($o, \JSON_THROW_ON_ERROR)); } $this->output[] = $o; } } }