Commit 1e21bae9 by Alexander Makarov

Removed Response::removeOutput, moved recursive buffer cleanup into Response::cleanOutput

parent 9f2b44fc
...@@ -42,17 +42,9 @@ class Response extends Component ...@@ -42,17 +42,9 @@ class Response extends Component
/** /**
* Discards the output buffer * Discards the output buffer
*/
public function cleanOutput()
{
ob_clean();
}
/**
* Discards the output buffer
* @param boolean $all if true recursively discards all output buffers used * @param boolean $all if true recursively discards all output buffers used
*/ */
public function removeOutput($all = true) public function cleanOutput($all = true)
{ {
if ($all) { if ($all) {
for ($level = ob_get_level(); $level > 0; --$level) { for ($level = ob_get_level(); $level > 0; --$level) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment