/** * Flush output */ public function flush() { // Send headers if (!$this->injectors['cli']) { $this->output->sendHeader(); } // Send echo $this->output->body(); // Clear $this->output->clear(); }
/** * Flush output */ public function flush() { // Send headers if (!$this->injectors['cli']) { $this->output->sendHeader(); } // Send echo $this->output->body(); // Shutdown the output buffer $this->injectors['buffer'] && ob_get_level() && ob_end_flush(); // Clear $this->output->clear(); }