Skip to content

Commit ed87b1a

Browse files
committed
ErrorPresenter: returns CallbackResponse
1 parent 35b4cfe commit ed87b1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Application/ErrorPresenter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function run(Application\Request $request)
4141
$this->logger->log($e, ILogger::EXCEPTION);
4242
}
4343
}
44-
ob_start();
45-
require __DIR__ . '/templates/error.phtml';
46-
return new Application\Responses\TextResponse(ob_get_clean());
44+
return new Application\Responses\CallbackResponse(function () use ($code) {
45+
require __DIR__ . '/templates/error.phtml';
46+
});
4747
}
4848

4949
}

0 commit comments

Comments
 (0)