Allow for custom exception handlers.
Allows developers to easily create and integrate their own Exception handler classes, and limiting their usage to only the exception or HTTP status code desired.
Supercedes #5355
Checklist:
- [x] Securely signed commits
- [x] Component(s) with PHPDoc blocks, only if necessary or adds value
- [ ] Unit testing, with >80% coverage
- [x] User guide updated
- [x] Conforms to style guide
This is more then I can handle on mobile, but looks really good! On my "to do" list.
It seems to me that this PR is BC. Services::exceptions() returns an instance of the CodeIgniter\Debug\Exceptions class, which can be extended. Changing this class will cause breaking changes for the custom implementation.
Yeah, you're correct. I have been sick the last couple of days but needed to do something other than sleep for a few hours and wasn't up to tackling the refactor of Tasks needed to get it integrated into the framework so I figured I could knock this out. Obviously wasn't thinking 100%.
We can shelve it or start a 5.0 branch so it doesn't just clog up the PR lists, or something.
Any update on this PR?
I have updated this PR for 4.4, and it is waiting for reviews. #7087
Closed by #7087