Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor exception handling to return instead of echoing.
By returning a response/string instead of directly echoing we get a few benefits: 1. We can more easily test the code without relying on ob_start(). 2. Application exception handlers can have full control over the response headers. 3. We can fix issues related to nested error pages. Refs #4130
- Loading branch information
Showing
6 changed files
with
146 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.